Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xopenbytes/disk
💾 Output and Input for Files
https://github.com/0xopenbytes/disk
disk file filemanager localstorage swift
Last synced: about 1 month ago
JSON representation
💾 Output and Input for Files
- Host: GitHub
- URL: https://github.com/0xopenbytes/disk
- Owner: 0xOpenBytes
- License: mit
- Created: 2023-03-07T00:16:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T00:38:04.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T06:02:26.890Z (9 months ago)
- Topics: disk, file, filemanager, localstorage, swift
- Language: Swift
- Homepage: https://0xopenbytes.github.io/Disk/
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```swift
// 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")
```