Changelog History
Page 1
-
v6.0.0 Changes
September 01, 2019โก๏ธ Xcode project, SwiftPM, etc.. modified to swift 5 version. No code update.
-
v5.3.0 Changes
September 01, 2019SwiftPM compatibility
-
v5.2.0 Changes
September 18, 2018Xcode 10, Swift 4.2 @IgorMuzyka
-
v5.1.1
September 17, 2018 -
v5.1.0 Changes
September 17, 2018Xcode 9.3, Swift 4.1
-
v5.0.0 Changes
September 17, 2018Xcode 9, Swift 4.0
-
v4.0.1
April 05, 2017 -
v4.0.0 Changes
October 05, 2016- swift 3
-
v3.0.0 Changes
July 20, 2016๐ Release Notes
๐ This release is mainly to make all current features available.
๐ New Features
- File system watching
- โ Added
workingDirectory
toProcess
- Added
createFile(_:)
create(_:)
methods toPath
andFile
- โ Added reading and writing for
File
withNSData
type - โ Added grep operations for
TextFile
- โ Added
init(groupIdentifier:)
toPath
- โ Added additional static paths
- โ Added
/
operator for appending paths - Hard linking files
๐ Changes
- ๐ Renamed
AllArray
andAllNames
inFileSystemEventFlags
toallFlags
andallFlagNames
. - ๐ Changed returned description and debug description strings for
FileSystemEventFlags
- Now contains the name of the type
FileSystemEventStream
is nowprivate
- โ Removed global
NSFileManager
forPath
- Each
Path
instance now has afileManagerDelegate
- Each
- Expanded name abbreviations
- "CGD" -> "Dispatch"
๐ Fixes
readFromPath
forNSData
now actually returns the contents- ๐ Fixed
commonAncestor(_:)
method forPath
-
v2.0.0 Changes
November 25, 2015๐ Release Notes
Important:
- The 'FK' prefix for FileKit types has been removed in an effort to make the library less cumbersome and more "Swifty" to use. ๐ถ
FileType
is no longer a protocol for files. It is now an enumeration of types that a given file can be. TheFile
class is now the standard form of interacting with files.
๐ New Features
FileKit
enumeration to get info regarding the current version of FileKit๐ฑ tvOS support ๐บ
DirectoryEnumerator
struct to enumerate through the files in a directory.Settable path extension
A path's children can now be obtained recursively
let allFilesInHome = Path.UserHome.children(recursive: true)
String
andPath
concatenation with the+
operatorA
changeDirectory(_:)
toPath
that changes the process' current working
directory toself
Path.UserDesktop.changeDirectory { print(Path.Current) // "/Users/nvzqz/Desktop"}
Getting a common ancestor between two paths with the
<^>
operator andcommonAncestor(_:)
methodGetting a resolved path with the
*
postfix operatorGetting an
NSFileHandle
for aFile
orPath
Path
now conforms toSequenceType
// Prints all of the paths in the user's home directoryfor path in Path.UserHome { print(path) }
Static
readFromPath(_:)
method forReadable
types that returnsSelf
Path
now conforms toStringInterpolationConvertible
, which acts in the same way regularString
interpolation works.let filePath: Path = "~/Desktop/File \(2)"print(filePath.rawValue) // "~/Desktop/File 2"
A
find
method with a search depth that maps a function on each path found and returns the non-nil results.let documents = Path.UserDocuments.find(searchDepth: 1) { String($0) }
๐ Initializers for
NSString
andNSBundle
that take aPath
Getting an
NSStream
for aFile
orPath
File
now conforms toComparable
according to size๐
FilePermissions
struct for seeing the permissions of the current process for a given file.let swift: Path = "/usr/bin/swift"print(swift.filePermissions) // FilePermissions[Read, Execute]
๐ Changes
- โ Removed 'FK' prefix from FileKit types in an effort to make the library more Swifty
- โ Removed
FileType
as a protocol for filesFileType
is now an enumeration of types that a file can be.File
is now the standard way of interacting with files
- ๐ Renamed
FKError
toFileKitError
- ๐ Changed error parameters 'fromPath' and 'toPath' to 'from' and 'to' respectively
- ๐ Changed the
โข
postfix operator to%
for standardizing path - ๐ Renamed
findPaths
method tofind
forPath
- ๐ Changed path
url
property toURL
and made it non-optional - 0๏ธโฃ The
find
method now has-1
as its defaultsearchDepth
writable
property forWritableConvertible
is now non-optional- ๐ Fix
+
operator implementation