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.