MuntashirAkon/AppManager

Auto delete empty backup folders

Opened this issue · 2 comments

Please check before submitting an issue

  • I am using the latest version of App Manager
  • I have searched the issues and haven't found anything relevant
  • I have read the docs

Describe a description of the new feature

Even after deleting backups empty folders remains there unnecessarily.
Request to delete those folder each time user delete backups for an app.

Usecase: I use Syncthing to sync AM backup folder across multiple devices. The empty folders are sync unnecessarily.

Let me know if they're kept for some specific purpose & clearing 'empty directories' should be the the job of cleaner apps instead, such as SD Maid SE.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Empty directories exist because App Manager does not explicitly check for package directories while deleting a backup. While this can be fixed for future backups, we'll soon be migrating to a new structure (#618) which will avoid creating any redundant directories.

This can be done by the cache cleaner service. In addition to this feature, I'm also thinking of adding an 1-click option to list and re-backup/delete broken backups (backups can be broken due to external modification, or out of date backups taken when the feature was in alpha mode some three years ago).