Expand description
A module to enable atomic directory writes.
This module provides the AtomicDir struct, which allows for safe and atomic
writes to directories.
It achieves this by writing changes to a temporary directory first, and then renaming the temporary directory to the target directory once all writes are successful. This ensures that the target directory is never left in a partially updated state.
Structs§
- Atomic
Dir - A wrapper type that enables atomic writes to directories.
Traits§
- Temp
DirApi - An API for temporary directories provided by a virtual file system (VFS).
- Temp
DirApi Async async - An async version of the
TempDirApitrait. - VfsSupports
Temporary Directories - A trait for VFS implementations that support temporary directories.
- VfsSupports
Temporary Directories Async async - A trait for VFS implementations that support temporary directories in async contexts.