Module clean

Source
Available on non-WebAssembly only.
Expand description

Code to remove obsolete and extraneous files from a filesystem-based state directory.

Constants§

CUTOFF 🔒
How old must an obsolete-looking file be before we’re willing to remove it?

Functions§

files_to_delete 🔒
Implementation helper for FsStateMgr::clean(): list all files in statepath that are ready to delete as of now.
fname_looks_obsolete 🔒
Return true if path looks like a filename we’d like to remove from our state directory.
very_old 🔒
Return true if entry is very old relative to now and therefore safe to delete.