Rename folder with leading [dot]

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Rename folder with leading [dot]

Post by *nsp »

If i want to rename a folder "Misc" to "Misc..." using [Shift]+[F6]
i receive a message :
a folder with the name
<PATH TO>\Misc.. already exist
Do you want to move....

Folder Misc.. does not exist.

If i want to rename a folder "Misc..." to "Misc.." using [Shift]+[F6]
In the folder name the latest dot is missing.
when i validate i receive a message with :
Error Cannot read <PATH TO>\Misc..
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Please don't use folder names with trailing dots, they require special handling in Windows (standard Windows API removes trailing spaces and dots from filenames), not all programs support them (even Windows Explorer doesn't allow to rename them).
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3295
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

and this is a TC Bug why? try to do that in explorer...
Hoecker sie sind raus!
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Sir_SiLvA wrote:and this is a TC Bug why? try to do that in explorer...
We use TC because we know that Explorer have bugs many limitations ! I have some folder created by archive extraction and and i must rename them basically removing or adding dot. For now i can do it using the "msys mv" command.

I admit that is not a good practice to have folder using trailing/leading dot...
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Foldernames with a leading dot / with leading dots are not a problem at all. You can find foldernames with a leading dot frequently ... on Linux / Unix systems. And T.C. can handle them without problems. :)

Foldernames with a trailing dot are a problem, because the rightmost dot in a file/foldername separates the name from the extension. It must not be present in cases where there is no extension. I.e. a dot must not be the last character of a foldername. This is more a Windows convention than a technical necessity.

The trouble arises, because there are Windows API functions and a small number of programmes which break this rule and others which stick to it.

Karl
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3295
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

nsp trying to rename "misc" to "misc..." gives an error in TC...
Sir_SiLvA wrote:and this is a TC Bug why? try to do that in explorer...
nsp wrote:We use TC because we know that Explorer have bugs many limitations !
This is NOT a BUG but a FS limitation :!:
the difference is TC gives you at least an error message - in Explorer (Windows 7) you dont even get an error message...

Linux allows allot more that the windows filesystem.
Hoecker sie sind raus!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Windows with NTFS allows too, but we need to use special filename prefix \\?\. But using it we may easilly create folder that is inaccessible from another programs (e.g. folder with name AUX, LPT1 etc or just a folder with trailing dot or space in name).
User avatar
nsp
Power Member
Power Member
Posts: 1805
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Sir_SiLvA wrote:nsp trying to rename "misc" to "misc..." gives an error in TC...
This is NOT a BUG but a FS limitation :!:
Can you explain, why it is a limitation as i can have this folder in my hard-drive and do what i want with some command line tool ?


On the other hand, TC do not allow to rename "misc..." to "misc" but explorer accept an do it.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

nsp wrote:On the other hand, TC do not allow to rename "misc..." to "misc" but explorer accept an do it.
I have Windows 7x64, and a folder "777...". Explorer doesn't allow to rename it, also it remove trailing dots when I try to append them to folder name => it uses same API w/o any prefix \\?\.
Post Reply