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
exists
orisDirectory
. - 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:)
. - Fully incorporate Swift6.0 & typed throws. All errors are parsed as
FileError
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", from: "1.0.1")
]
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
This package uses DocC for documentation. View on Github Pages