Traits§
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.