Skip to main content

Module cleanup

Module cleanup 

Source
Expand description

Manual temp file cleanup command.

Responsibilities:

  • Provide on-demand cleanup of ralph temporary files.
  • Support dry-run mode for safe preview of cleanup actions.
  • Support force mode for immediate cleanup regardless of age.

Not handled here:

  • Automatic cleanup (see main.rs startup cleanup and fsutil cleanup triggers).
  • Tutorial sandbox cleanup (–keep-sandbox is intentional persistence).

Invariants/assumptions:

  • Cleanup is best-effort and logs warnings on individual file errors.
  • Dry-run lists what would be deleted without making changes.

Functions§

run
Run the cleanup command.