I realize this is sort of a 'duh'
but before you do this, most file systems won't allow two files of the same name in the same directory.
Depending on your OS, the name change will fail... or worse, even fubar your directory, so... if you're talking about actually changing the names in storage (rather than changing, say -- names in a list of names, think ahead.