“Error: Cannot read…”When folder is renamed with unallowed characters

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
User919
Junior Member
Junior Member
Posts: 54
Joined: 2017-06-06, 19:14 UTC

“Error: Cannot read…”When folder is renamed with unallowed characters

Post by *User919 »

1. Create folder New Folder.
2. Try to rename it putting backslash (\) in the middle of name.

Similar not specific error occurs on folder creation like F*F. Character naming failures should be reported with detail.

File rename fails with unspecific message and file creation fails with none. Also this is character dependent when asterisk (*) on rename causes nothing, backslash (\) splits file into directory and file and forward slash (/) causes error.

I guess prohibited character shan’t be inputable or name with it confirmable.
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: “Error: Cannot read…”When folder is renamed with unallowed characters

Post by *petermad »

backslash (\) splits file into directory and file
This is actually a feature - it would als happen for the folder "New Folder" if you put the backslash directly after New. The error you get if you put it diretly in front of Folder is caused by the remaining space after New ("New ").
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
User919
Junior Member
Junior Member
Posts: 54
Joined: 2017-06-06, 19:14 UTC

Re: “Error: Cannot read…”When folder is renamed with unallowed characters

Post by *User919 »

Hmmm… Let review cases.

Renaming
1. New/ Folder, New/Folder gets “Error: Cannot Read …”.
2. New\ Folder gets “Error: Cannot Read …”.
3. New\Folder creates respective tree.
4. New* Folder, New *Folder produces New Folder.
5. New|Folder, New| Folder gets “Invalid file name specified!”.

6. Some/File.txt, Some/ File.txt gets “Error: Cannot write … ! Please remove the write protection!”.
7. Some \File.txt gets “Error: Cannot write … ! Please remove the write protection!”.
8. Some\File.txt creates respective tree.
9. Some| File.txt gets “Invalid file name specified!”.
10. Some* File.txt produces Some File.txt.

Creating
1. New|Folder created New and Folder folders.
2. New\Folder, New/Folder creates respective tree.
3. New \Folder, New /Folder creates just New folder.
4. New*Folder, New *Folder gets “Error: Directory … not created!”.

5. Some*File.txt, Some *File.txt, Some|File.txt, Some |File.txt, … does nothing.

At least for me this is messy more then it is desired.
User avatar
elgonzo
Power Member
Power Member
Posts: 866
Joined: 2013-09-04, 14:07 UTC

Re: “Error: Cannot read…”When folder is renamed with unallowed characters

Post by *elgonzo »

Perhaps any testing should be done with the current version of TC. There is not much to be gained in testing and reporting for only old versions, as i am pretty sure any possible fixes and changed behavior that can be found in 9.51 won't be backported to TC 9.2x.

I played a bit around with TC 9.51 x64 on Win7 x64 (just cursory, no exhaustive testing), and found that the behavior of 9.51 differs in some aspects from what has been reported here. Namely:

- TC 9.51 x64 treats forward slashes (/) in the same manner as backslashes (\) when renaming/creating folders/files. I suspect this is handled by the OS, not TC. (The commandline in Win7 also supports forward slashes in lieu of backslashes for some built-in commands, like "cd" and "md" for example)

- Renaming or creating with some name where a (back)slash is placed right in front of a space character works, creating a folder tree with a file/folder whose name starts with a space. (I tested with NTFS, FAT32, and on a network share provided by some Samba version from a ZFS array)


It would also help to state the operating system you are using. Some limitations/quirks you have found might perhaps be attributable to your OS version and might not be reproducible in different/newer versions of Windows...


:-)
Begrudgingly back to Windows... now 11... sigh... but i have no nerve for Linux desktop anymore...
User avatar
User919
Junior Member
Junior Member
Posts: 54
Joined: 2017-06-06, 19:14 UTC

Re: “Error: Cannot read…”When folder is renamed with unallowed characters

Post by *User919 »

Ok, TC 9.51 64 bit (2020-03-25), W10 v 1903, 18362.38.

…definitely not exhausting tests…

Renaming
1. New/ Folder, New/Folder get “Error: Cannot Read …”.
2. New \ Folder, New \Folder get “Error: Cannot Read …”.
3. New\Folder, New\ Folder creates respective tree.
4. New* Folder, New *Folder, New * Folder, New*Folder produce New Folder.
5. New|Folder, New| Folder, New |Folder, New | Folder get “Invalid file name specified!”.

6. Some/File.txt, Some/ File.txt, Some /File.txt, Some / File.txt get “Error: Cannot write … ! Please remove the write protection!”.
7. Some \File.txt, Some \ File.txt get “Error: Cannot write … ! Please remove the write protection!”.
8. Some\File.txt, Some\ File.txt creates respective tree.
9. Some| File.txt, Some|File.txt, Some |File.txt, Some | File.txt get “Invalid file name specified!”.
10. Some* File.txt, Some*File.txt, Some *File.txt, Some * File.txt produces Some File.txt.


Creating
1. New|Folder created New and Folder folders.
2. New\Folder, New/Folder creates respective tree.
3. New \Folder, New /Folder creates just New folder.
4. New*Folder, New *Folder gets “Error: Directory … not created!”.

5. Some*File.txt, Some *File.txt, Some|File.txt, Some |File.txt, … does nothing.
Post Reply