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

Nondestructive mode can create empty directories #6

Open
jlevy opened this issue Sep 14, 2015 · 0 comments
Open

Nondestructive mode can create empty directories #6

jlevy opened this issue Sep 14, 2015 · 0 comments
Labels

Comments

@jlevy
Copy link
Owner

jlevy commented Sep 14, 2015

When using dry-run mode (-n), files won't be modified.

However, if we are renaming entire paths, the implementation of transform_file() temporarily creates the parent paths of the new, rewritten path as part of the dry run (to better reproduce real behavior, and because it counts matches).

This means it can leave behind new, empty directories.

This isn't a really big deal, but it's arguably a bug.

@jlevy jlevy added the bug label Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant