Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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")
```