Skip to main content

Module fs

Module fs 

Source
Expand description

Best-effort filesystem cleanup helpers.

These helpers are for temporary artifacts where cleanup failures should be logged without masking the primary operation result. They intentionally do not return errors. Callers that need transactional deletion, user-visible failures, or storage-driver semantics should keep using explicit filesystem or storage APIs at the product boundary.

Functionsยง

cleanup_runtime_temp_root
Removes the short-lived runtime temporary directory under temp_root.
cleanup_temp_dir
Removes a temporary directory tree, ignoring missing directories and logging other failures.
cleanup_temp_file
Removes a temporary file, ignoring missing files and logging other failures.