The FinderItem Package.
The FinderItem/FinderItem provides a great abstraction over the ways in which you can interact with the file system.
It abstracts over many structures, including FileManager, URL, FilePath, and more.
- Load contents using
load(_:). - Inspect if file
existsorisDirectory. - Inspect file
stem&extension. - Gets
contentType. - File operations including
copy(to:),move(to:),remove(). open(configuration:)orreveal()files- Get sorted children as a stream using
children(range:). - Typed throws
FinderItem uses Swift Package Manager as its build tool. If you want to import in your own project, it's as simple as adding a dependencies clause to your Package.swift:
dependencies: [
.package(url: "https://github.com/Vaida12345/FinderItem.git", from: "1.2.0")
]and then adding the appropriate module to your target dependencies.
You can add this framework as a dependency to your Xcode project by clicking File -> Swift Packages -> Add Package Dependency. The package is located at:
https://github.com/Vaida12345/FinderItem.git
This package uses DocC for documentation. View on Github Pages