nemo_curator.utils.atomic_io
nemo_curator.utils.atomic_io
Module Contents
Functions
API
Flush directory metadata when supported by the filesystem.
Remove a temporary file without masking the primary result.
Write JSON to a fsynced temporary file beside its destination.
Flush directory metadata to disk.
Write JSON through a fsynced temp file and atomic rename.
Directory fsync is best-effort because the destination is already visible
after os.replace and some shared filesystems do not support syncing a
directory file descriptor.
Atomically create a JSON file without replacing an existing file.