deep-clean icon indicating copy to clipboard operation
deep-clean copied to clipboard

Previous backup folders are included in Nuke cleanup

Open rock3r opened this issue 7 years ago • 0 comments

Describe the bug When you have previous backup folders (e.g., *backup00, *backup01, etc.) the script considers them for cleanup too. We should filter out the folders that match .*backup\d{2}$.

To Reproduce Steps to reproduce the behavior:

  1. Run the script once with the --backup and --nuke options
  2. Confirm it has created backups
  3. Run the script again, with the --dry-run and --nuke options
  4. Confirm that it would try to clear the previously backup folders too

Expected behavior Backup folders should be ignored and not nuked

Desktop (please complete the following information):

  • OS: macOS 10.13.5 (17F77)
  • Version: 1.3.0

rock3r avatar Jun 19 '18 08:06 rock3r