nzbToAniDB icon indicating copy to clipboard operation
nzbToAniDB copied to clipboard

Renamer may add trailing dot [.] at end of foldername

Open avluis opened this issue 9 years ago • 1 comments

I was tracking this down on my Windows computers (OS X automatically removes trailing dots from folder names and Linux does not have this restriction) due to some folders receiving Windows truncated folder (file) naming. Turns out that the script can add a trailing dot to the folder names causing Windows clients to truncate the folder name into something 'accessible' to Windows Explorer.

An example of this behavior can be reproduced when renaming series that have a trailing dot like: Ore, Twintail ni Narimasu. Kobato.

This issue is particular to the way Windows handles extensions (I have no idea why Windows thinks folders can be files!), so if the dot is the last thing in a folder/file, it will be expecting an extension. The truncating happens when a folder already exists (Windows will remove the trailing dot from the folder name automatically if created in Windows). From my observations, Windows has no issue handling the dot anywhere else in the folder name, it just cannot be at the end.

This may be of some help to narrow down what would be considered safe when it comes to the different OS combinations out there.

avluis avatar Feb 02 '15 23:02 avluis

thanks, i'll put a fix in the next version.

Benni-chan avatar Feb 03 '15 08:02 Benni-chan