Skip to content

Releases: nvzqz/FileKit

v1.7.0

10 Oct 19:06
Compare
Choose a tag to compare

Release Notes

Changes

  • The file manager for FKPath instances is now defined by FKPath.FileManager, which is set to NSFileManager.defaultManager() by default
  • NSDictionary, NSArray, and NSData now conform to FKWritableToFile

New Features

  • message property for FKError that improves error logging
  • FKPath now works with bookmark data
  • FKArrayFile and FKDataFile for NSArray and NSData respectively
  • FKReadableFromFile and FKWritableToFile protocols
  • FKWritableConvertible protocol with writable property to make the conforming type FKWritable
  • Static function FKPath.Volumes(_:) that returns an FKPath array of all mounted volumes
  • touch(_:) method for FKPath 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

23 Sep 23:57
Compare
Choose a tag to compare

Release Notes

New Features

Support for watchOS 2

v1.5.0

19 Sep 23:36
Compare
Choose a tag to compare

Release Notes

New Features

  • FKPath now has an attributes property and properties for certain attributes
    • creationDate
    • 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 an isSymbolicLink property

v1.4.0

14 Sep 01:34
Compare
Choose a tag to compare

Release Notes

Changes

  • The symlink operators have been renamed to =>> and =>!

Fixes

  • The symlinkToPath(_:) method in FKFileType would attempt to symbolically link the argument path to itself rather than the file's path to the argument.

v1.3.0

08 Sep 05:13
Compare
Choose a tag to compare

Release Notes

New Features

  • FKPath now has its own pathExtension 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

08 Sep 00:06
Compare
Choose a tag to compare

Release Notes

Changes

  • The symlink operators have been renamed to ~>> and ~>!

New Features

  • Except for reading and writing, FKPath now has the same operations as FKFileType
  • Moving files using FKPath or FKFileType (->>, ->!)
  • Copying files using FKPath or FKFileType (+>>, +>!)

v1.1.0

07 Sep 19:51
Compare
Choose a tag to compare

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 for FKPath
  • name property for FKFileType
  • createSymlinkToPath(_:) method for FKPath
  • >>> operator for FKPath symlinks
  • >>! operator for FKPath forced symlinks

v1.0.0

06 Sep 19:55
Compare
Choose a tag to compare

Initial Release

Initial release of FileKit