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

Files get overwritten if new names are the same #31

Open
KodyVB opened this issue Mar 27, 2024 · 0 comments · May be fixed by #33
Open

Files get overwritten if new names are the same #31

KodyVB opened this issue Mar 27, 2024 · 0 comments · May be fixed by #33

Comments

@KodyVB
Copy link

KodyVB commented Mar 27, 2024

To reproduce:
Run the following commands:

$ mkdir test
$ cd test
$ touch thisTest.txt this_test.txt
$ ls
thisTest.txt this_test.txt
$ stdrename -s
$ ls
this_test.txt

Observed behavior:
If you have two different files which have the same name but different naming conventions, when you use stdrename to change them to have the same naming convention one will get overwritten.

Expected behavior:
Either the name doesn't get changed or something is added to the name to avoid the collision, e.g. "this_test.txt" and "this_test_1.txt" (just a quick example; there may be better naming scheme ideas).

@KodyVB KodyVB linked a pull request Aug 29, 2024 that will close this issue
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 a pull request may close this issue.

1 participant