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.
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")
link |
Stars: 2 |
Last commit: 3 weeks ago |
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.
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