Skip to main content

Module cleaner

Module cleaner 

Source

Structs§

CleanedItem
Result of a single deletion

Enums§

CleanError

Functions§

remove_dir
Delete a directory and all its contents. On permission denied, retries with elevated privileges.
remove_file
Delete a single file. On permission denied, retries with elevated privileges via macOS auth dialog.
remove_path
Delete a path — dispatches to remove_file or remove_dir based on path type
run_cleanup_command
Run a shell command to clean (used for Docker, etc.)