plfile

1.0.8

File Management Library with Swift
pelagornis/plfile

What's New

PLFile v1.0.8

2024-01-26T09:38:46Z

What's Changed

  • PLFile additional support for iOS and tvOS, watchOS

PLFile

Official SPM Swift License Platform

📁 Pelagornis File Management Library

Installation

PLFile was deployed as Swift Package Manager. Package to install in a project. Add as a dependent item within the swift manifest.

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/pelagornis/plfile.git", from: "1.0.7")
    ],
    ...
)

Then import the PLFile from thr location you want to use.

import File

Documentation

The documentation for releases and main are available here:

Using

Path Setting.

let path = Path("/Users/ji-hoonahn/Desktop/") // example

Easy access path.

Path.current
Path.root
Path.library
Path.temporary
Path.home
Path.documents

Create, Write file and Folder!

let path = Path.home
let folder = try? Folder(path: path)
let file = try? folder.createFile(at: "test.swift")
try? file.write("print(1)")

And you can delete files and folders if you want.

try? file.delete()
try? folder.delete()

License

PLFile is under MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

Last updated: Sat Dec 14 2024 10:43:20 GMT-1000 (Hawaii-Aleutian Standard Time)