FilesModule
PackageAxial.Files
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| writeAtomic | Files.writeAtomic path contents | Writes bytes to a sibling temporary file, flushes them to disk, then replaces the destination by rename. |
| cleanupStaleTemps | Files.cleanupStaleTemps path age | Deletes sibling atomic-write temporary files older than age for the target path. |
| writeAllTextAtomic | Files.writeAllTextAtomic path contents | Encodes text as UTF-8 and atomically replaces a file. |
| writeAllTextAtomicWithEncoding | Files.writeAllTextAtomicWithEncoding path contents encoding | Encodes text with the supplied encoding and atomically replaces a file. |
| watch | Files.watch recursive path | Watches a directory (optionally recursively) or one file until consumption ends. |
| walk | Files.walk descend root | Walks the children of root breadth-first. |
| reader | Files.reader path | Opens a BOM-aware text reader, or None if the first 8192 bytes contain a NUL (except UTF-16 with a BOM). |
| lines | Files.lines path | Streams text in 2048-line batches. |

