Swiftpack.co - pelagornis/plfile as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by pelagornis.
pelagornis/plfile 1.0.8
File Management Library
⭐️ 4
🕓 5 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/pelagornis/plfile.git", from: "1.0.8")

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

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.

GitHub

link
Stars: 4
Last commit: 4 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

PLFile v1.0.8
5 weeks ago

What's Changed

  • PLFile additional support for iOS and tvOS, watchOS

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics