Renaming issue

Get help for specific problems
Posts: 18
Joined: 9 Dec 2024

Abele

Hi,

I want signal a little issue on renaming function, if anyone try to
renaming more than three files with various file extension the panel
indicate a bad point to renaming, I already have seen this issue on
tryng to rename mixed files and folder, but I've thinking that is for the
presence both folder/s and file/s, instead the issue already is present on
files, I think the software lost the full stop of extension.
You can see a sample on images attached.
p.s.:
Interface is in Italian, but if required I can change in English, the error is unchanged.
Attachments
Two files same ext. OK.png
Two files same ext. OK.png (135.94 KiB) Viewed 1240 times
Three files two ext. OK.png
Three files two ext. OK.png (145.47 KiB) Viewed 1240 times
Over three ext. BAD.png
Over three ext. BAD.png (172.92 KiB) Viewed 1240 times
Mixed file and folder BAD.png
Mixed file and folder BAD.png (129.85 KiB) Viewed 1240 times
User avatar
Site Admin
Posts: 7279
Joined: 9 Dec 2007

Zenju

What exactly is the problem? The file extensions are obviously different.
Posts: 18
Joined: 9 Dec 2024

Abele

The problem is: can't rename, if pointining the cursor on 'placeholder' , the cursors to renaming, pointing to the first same letter present near to the 'placeholder', without consider the file extension.
See new image...
Attachments
Screenshot 2025-01-24 124358.png
Screenshot 2025-01-24 124358.png (52.81 KiB) Viewed 228 times
User avatar
Site Admin
Posts: 7279
Joined: 9 Dec 2007

Zenju

With this specific set of names there are no common substrings, except for single characters.

The first common one is "r":
common-t.PNG
common-t.PNG (15.18 KiB) Viewed 212 times
The shortest of the remaining strings is "ter.exe".
The algorithm now tests each of these characters starting with "t":
It immediately finds "t" to be common for all four trailing strings.
Incidentally, "t" is the last character of "ibe.bat", so the search is over.

The question is why should "." be prefered over "t" when both are equally long matches for all four strings.
Posts: 18
Joined: 9 Dec 2024

Abele

Hi,

I know that no other program like 'FreeFileSync has a file/folder renaming function
and I'm happy for that, and it works very well for the most part, but I think a little prefix/suffix include/exclude function could be useful, because in my case i tried to rename about 150 files together and as a result i found some files with changed suffix, then the system indicated as unknown extension, that's what i was saying, now if you can 'force' the program NOT to search in the suffix as an option, i can have files with names (prefix) changed as i want or not, but readable, otherwise to avoid this i have to rename one by one, just a little suggestion to improve what is already great.
Posts: 1066
Joined: 8 May 2006

therube

So you're wanting an 'Ignore Extension' feature?
And if Ignore Extension is enabled, a Rename would only work on the filename, excluding the extension.
.
Everything - Ignore Extension in Rename.png
Everything - Ignore Extension in Rename.png (15.5 KiB) Viewed 185 times
Posts: 18
Joined: 9 Dec 2024

Abele

Yes right, with this feature I think You complete the function 'renaming', and this can facilitate my work!
Posts: 18
Joined: 9 Dec 2024

Abele

if you can make this change i am grateful!
User avatar
Site Admin
Posts: 7279
Joined: 9 Dec 2007

Zenju

It probably makes sense to handle file name and extension separately - since we're not dealing with arbitrary strings - and then combine the result:
file-rename.PNG
file-rename.PNG (17.02 KiB) Viewed 130 times
Posts: 18
Joined: 9 Dec 2024

Abele

Yes this is what I expect when try to renaming, this is well...
Posts: 18
Joined: 9 Dec 2024

Abele

That's exactly what I meant, you're fast as a rocket and precise as a stopwatch! Thanks!