Releases: nvzqz/FileKit
Releases · nvzqz/FileKit
v1.7.0
Release Notes
Changes
- The file manager for
FKPathinstances is now defined byFKPath.FileManager, which is set toNSFileManager.defaultManager()by default NSDictionary,NSArray, andNSDatanow conform toFKWritableToFile
New Features
messageproperty forFKErrorthat improves error loggingFKPathnow works with bookmark dataFKArrayFileandFKDataFileforNSArrayandNSDatarespectivelyFKReadableFromFileandFKWritableToFileprotocolsFKWritableConvertibleprotocol withwritableproperty to make the conforming typeFKWritable- Static function
FKPath.Volumes(_:)that returns anFKPatharray of all mounted volumes touch(_:)method forFKPaththat creates a file at the path if it doesn't exist or updates the modification date- Properties for checking if the current process has certain privileges for an
FKPath(isWritable,isReadable,isExecutable,isDeletable)
v1.6.0
v1.5.0
Release Notes
New Features
FKPathnow has anattributesproperty and properties for certain attributescreationDatemodificationDateownerNameownerIDgroupNamegroupIDextensionIsHiddenposixPermissionsfileReferenceCountfileSizefilesystemFileNumberfileType
- Created
FKPath.FileTypeenum that can also be initialized with a raw value.
It makes working with the strings returned from the NSFileType key easier to
work with. FKPathnow has anisSymbolicLinkproperty
v1.4.0
v1.3.0
Release Notes
New Features
-
FKPathnow has its ownpathExtensionproperty -
Method for finding paths has been added to
FKPathYou can find all paths with the
"txt"extension five folders deep into the Desktop with:let textFiles = FKPath.UserDesktop.findPaths(searchDepth: 5) { path in path.pathExtension == "txt" }
v1.2.0
Release Notes
Changes
- The symlink operators have been renamed to
~>>and~>!
New Features
- Except for reading and writing,
FKPathnow has the same operations asFKFileType - Moving files using
FKPathorFKFileType(->>,->!) - Copying files using
FKPathorFKFileType(+>>,+>!)
v1.1.0
Release Notes
Changes
The components property of FKPath no longer takes into account a trailing
"/" in the path.
let hasTrailing: FKPath = "/Users/"
let noTrailing: FKPath = "/Users"
print(hasTrailing.components.last == noTrailing.components.last) // trueNew Features
existsproperty forFKPathnameproperty forFKFileTypecreateSymlinkToPath(_:)method forFKPath>>>operator forFKPathsymlinks>>!operator forFKPathforced symlinks