Go to file
Zach 7804456d7e
Update Disk.swift
2023-03-06 17:21:50 -07:00
.github/workflows Update docc.yml 2023-03-06 17:20:20 -07:00
Sources/Disk Update Disk.swift 2023-03-06 17:21:50 -07:00
Tests/DiskTests init 2023-03-06 17:16:34 -07:00
.gitignore init 2023-03-06 17:16:34 -07:00
LICENSE Create LICENSE 2023-03-06 17:18:06 -07:00
Package.resolved init 2023-03-06 17:16:34 -07:00
Package.swift init 2023-03-06 17:16:34 -07:00
README.md init 2023-03-06 17:16:34 -07:00

README.md

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