Skip to main content

Module temp_file

Module temp_file 

Source
Expand description

Temporary files of non-append writes, and how to reclaim them.

Structsยง

SweepReport
What a sweep did.

Constantsยง

TEMPORARY_FILE_SCHEME ๐Ÿ”’
Scheme of the only service that publishes non-append writes with a rename.
TEMPORARY_MARKER ๐Ÿ”’
Marker that follows the name of the target in a temporary file name.
TEMPORARY_PREFIX ๐Ÿ”’
Prefix of a temporary file name.
TEMPORARY_SUFFIX ๐Ÿ”’
Suffix of a temporary file name.

Functionsยง

is_temporary_file ๐Ÿ”’
sweep_dir ๐Ÿ”’
sweep_temporary_files
Deletes the temporary files in dirs that are older than older_than.
temporary_path ๐Ÿ”’
Returns the path a non-append write to path goes to before it is renamed.
writes_temporary_files
Returns true if store publishes non-append writes with a rename, which is what leaves temporary files behind when the writer dies.