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

Option to "Preserve file extension" breaks directory names #20

Open
diev opened this issue Feb 11, 2022 · 0 comments
Open

Option to "Preserve file extension" breaks directory names #20

diev opened this issue Feb 11, 2022 · 0 comments

Comments

@diev
Copy link

diev commented Feb 11, 2022

Try to replace all 2 with 3 for a such directory and a file:

rename-regex\bin>md "12.02.2022 DIR"
rename-regex\bin>echo>"12.02.2022 file.txt"
rename-regex\bin>dir/b
12.02.2022 DIR
12.02.2022 file.txt
RR.exe
rename-regex\bin>rr * 2 3 /dirs /files /e
12.02.2022 file.txt -> 13.03.3033 file.txt
12.02.2022 DIR -> 13.03.2022 DIR

The result is few 2 have survived because they were after the last . char and so treated as a wrong file extension (".2022 DIR") not applicable for a directory name.

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

No branches or pull requests

1 participant