Nondestructive mode can create empty directories
Open
bug
- Dominant language
- Python
- Stars
- 374
- Forks
- 39
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.