Module atomic_dir

Module atomic_dir 

Source
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§

AtomicDir
A wrapper type that enables atomic writes to directories.

Traits§

TempDirApi
An API for temporary directories provided by a virtual file system (VFS).
TempDirApiAsyncasync
An async version of the TempDirApi trait.
VfsSupportsTemporaryDirectories
A trait for VFS implementations that support temporary directories.
VfsSupportsTemporaryDirectoriesAsyncasync
A trait for VFS implementations that support temporary directories in async contexts.