Swiftpack.co - 0xOpenBytes/Disk as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by 0xOpenBytes.
0xOpenBytes/Disk 0.1.0
💾 Output and Input for Files
⭐️ 2
🕓 3 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/0xOpenBytes/Disk.git", from: "0.1.0")

Disk

Disk is a convenience typealias for o.file that represents a file system disk. It provides easy access to the file system and its manipulation operations.

Usage

Here are some examples of how you can use Disk:

// Read the contents of a file
let data = try Disk.data(filename: "file.txt")

// Write a string to a file
try Disk.out("Hello, world!", filename: "greeting.txt")

// Delete a file
try Disk.delete(filename: "file.txt")

GitHub

link
Stars: 2
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

0.1.0
3 weeks ago

Disk

Disk is a convenience typealias for o.file that represents a file system disk. It provides easy access to the file system and its manipulation operations.

Usage

Here are some examples of how you can use Disk:

// Read the contents of a file
let data = try Disk.data(filename: "file.txt")

// Write a string to a file
try Disk.out("Hello, world!", filename: "greeting.txt")

// Delete a file
try Disk.delete(filename: "file.txt")

Full Changelog: https://github.com/0xLeif/Disk/commits/0.1.0

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