[go: up one dir, main page]

Module fs

Source

Traits§

AtomicWriteFileSys
AtomicWriteFileWithRetriesSys

Functions§

atomic_write_file
Writes the file to the file system at a temporary path, then renames it to the destination in a single sys call in order to never leave the file system in a corrupted state.
atomic_write_file_with_retries
canonicalize_path_maybe_not_exists
Canonicalizes a path which might be non-existent by going up the ancestors until it finds a directory that exists, canonicalizes that path, then adds back the remaining path components.