Skip to content

Files get overwritten if new names are the same #31

@KodyVB

Description

@KodyVB

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions