-
Notifications
You must be signed in to change notification settings - Fork 43
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
Extend mergerfs.dedup to folders #23
Comments
You want to clean up directories on one drive that have data on others? The problem is that with path preserving those empty directories matter. It can be done but it would have an effect on placement for path preserving. Can also do a |
Yes
Could you please explain why? The folder exists with data on another drive. If it exists empty on another drive, is that not redundant?
No. That would remove also actual empty folder, not just redundant folder. |
Path preserving policies (generally) only consider drives with the path in question. https://github.com/trapexit/mergerfs#policy-descriptions If the directory is removed that drive would now not be considered and could break the intentions of the user given the policy. I'm not saying that the feature isn't useful in so much that in a targeted way it can help clean up. Just that it could lead to issues if used without understanding that impact. |
Thanks for the explanation. As an option to clean up, this would still be very useful IMHO. If you plan to implement it, that would be appreciated. Otherwise please close this issue. |
removing nested empty folders is a bit complicated. This is the best solution I've found thus far: yes | bfs -nohidden -type d -exec bfs -f {} -not -type d -exit 1 \; -prune -ok bfs -f {} -type d -delete \; |
Hi,
mergerfs.dedup is very useful for files. But it doesn't take care of folders.
When a folder is created on multiple volumes, for instance to split the content of a folder among these volumes, and some of this content is removed, empty folders on some volume(s) remain(s). It would be great to remove these unnecessary empty folders.
Thanks. And thanks to develop mergerfs, it's great!
The text was updated successfully, but these errors were encountered: