Skip to content

implement --rmdirs option#225

Merged
ivandokov merged 1 commit intoivandokov:masterfrom
rob-miller:rmdir
Dec 20, 2023
Merged

implement --rmdirs option#225
ivandokov merged 1 commit intoivandokov:masterfrom
rob-miller:rmdir

Conversation

@rob-miller
Copy link
Contributor

closes #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
Copy link
Contributor Author

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

@ivandokov ivandokov merged commit d13b75e into ivandokov:master Dec 20, 2023
@James-Oakley
Copy link

James-Oakley commented Jan 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When used --move delete empty source directories

3 participants