Std.Fs
16 public declarations
- canonical
Str -> Result[Str, Std.Fs.FsError]A path with every symbolic link and relative step resolved.
- FsError
Why a filesystem operation did not do what it was asked.
- linkTo
Str -> Str -> Result[(), Std.Fs.FsError]A symbolic link at `link` that names `target`.
- metadata
Str -> Result[Std.Fs.Metadata, Std.Fs.FsError]What is known about a path: its size, kind, and permissions.
- Metadata
What is known about a path without opening it.
- permissions
Str -> Result[Std.Fs.Permissions, Std.Fs.FsError]What a path permits.
- Permissions
What a file permits, as the four questions every operating system can answer.
- removeTree
Str -> Result[(), Std.Fs.FsError]A path and everything beneath it removed.
- rename
Str -> Str -> Result[(), Std.Fs.FsError]A path renamed, replacing whatever the destination held.
- resolveInside
Str -> Str -> Result[Str, Std.Fs.FsError]The real location of `path` within `base`, refused when it lies outside.
- setPermissions
Str -> &Std.Fs.Permissions -> Result[(), Std.Fs.FsError]A path's permissions set to exactly the flags given.
- temporaryDirectoryIn
Str -> Str -> Result[Str, Std.Fs.FsError]A new empty directory under `parent`, named by `prefix` and random digits.
- temporaryFileIn
Str -> Str -> Result[Str, Std.Fs.FsError]A new empty file in a directory, under a name no other process holds.
- withTemporaryDirectory
Str -> fn(Str) -> Result[T, Std.Fs.FsError] -> Result[T, Std.Fs.FsError]An action given a fresh temporary directory that is removed afterwards.
- writeAtomically
Str -> &Bytes -> Result[(), Std.Fs.FsError]A file's contents replaced so that no reader ever sees them half written.
- writeTextAtomically
Str -> Str -> Result[(), Std.Fs.FsError]Text written with the same guarantee as `writeAtomically`.
