Crate dir_probe

Crate dir_probe 

Source
Expand description

A pre-flight check that a directory is genuinely usable for the create-a-temp-file-then-rename-it-into-place pattern used by databases like RocksDB and by maildir-style delivery. See probe_directory.

Functionsยง

probe_directory
Verify that the calling process can perform the file operations that a RocksDB or maildir style store relies on within dir: create a file, write and fsync it, atomically rename it into place, and unlink it.