plfile

1.0.6

File Management Library
pelagornis/plfile

What's New

PLFile v1.0.6

2023-12-07T01:27:02Z
  • no changes

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.6")
    ],
    ...
)

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: Wed Feb 28 2024 18:40:06 GMT-1000 (Hawaii-Aleutian Standard Time)