ivandokov / phockup

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

implement --rmdirs option #225

Closed rob-miller closed 11 months ago

rob-miller commented 1 year 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 11 months ago

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

James-Oakley commented 10 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.