Releases: nvzqz/FileKit
Releases · nvzqz/FileKit
v1.7.0
Release Notes
Changes
- The file manager for
FKPath
instances is now defined byFKPath.FileManager
, which is set toNSFileManager.defaultManager()
by default NSDictionary
,NSArray
, andNSData
now conform toFKWritableToFile
New Features
message
property forFKError
that improves error loggingFKPath
now works with bookmark dataFKArrayFile
andFKDataFile
forNSArray
andNSData
respectivelyFKReadableFromFile
andFKWritableToFile
protocolsFKWritableConvertible
protocol withwritable
property to make the conforming typeFKWritable
- Static function
FKPath.Volumes(_:)
that returns anFKPath
array of all mounted volumes touch(_:)
method forFKPath
that 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
FKPath
now has anattributes
property and properties for certain attributescreationDate
modificationDate
ownerName
ownerID
groupName
groupID
extensionIsHidden
posixPermissions
fileReferenceCount
fileSize
filesystemFileNumber
fileType
- Created
FKPath.FileType
enum that can also be initialized with a raw value.
It makes working with the strings returned from the NSFileType key easier to
work with. FKPath
now has anisSymbolicLink
property
v1.4.0
v1.3.0
Release Notes
New Features
-
FKPath
now has its ownpathExtension
property -
Method for finding paths has been added to
FKPath
You 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,
FKPath
now has the same operations asFKFileType
- Moving files using
FKPath
orFKFileType
(->>
,->!
) - Copying files using
FKPath
orFKFileType
(+>>
,+>!
)
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) // true
New Features
exists
property forFKPath
name
property forFKFileType
createSymlinkToPath(_:)
method forFKPath
>>>
operator forFKPath
symlinks>>!
operator forFKPath
forced symlinks