Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement --rmdirs option #225

Merged
merged 1 commit into from
Dec 20, 2023
Merged

implement --rmdirs option #225

merged 1 commit into from
Dec 20, 2023

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
7 checks passed
@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