ivandokov / phockup

Media sorting tool to organize photos and videos from your camera in folders by year, month and day.
MIT License
820 stars 100 forks source link

implement --rmdirs option #225

Closed rob-miller closed 6 months ago

rob-miller commented 7 months ago

closes https://github.com/ivandokov/phockup/issues/20 as option, not by default.

Adds an option --rmdirs which will delete empty subdirectories after processing with --move is complete. Respects --maxdepth.

rob-miller commented 6 months ago

Just to highlight, this does not have the issues of #32 as shown by the test cases.

James-Oakley commented 5 months ago

Hm, using --move without using --rmdirs, I'm finding that the .stfolder directory needed by syncthing is still being removed because it's empty. As I understand the rmdirs argument, that shouldn't happen. chattr fixed that for now.