Support special filenames

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
User avatar
mdruiter
Posts: 262
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Support special filenames

Post by mdruiter »

It would be really nice if Salamander supported handling 'special' filenames. For instance:
  • ending in a dot
  • ending in a space
  • reserved names like CON or NUL
  • longer than 256 characters
For instance, try creating a file called "...", like this:

Code: Select all

echo.>"\\?\C:\Temp\..."
These filenames can also be (accidentally) created with Cygwin tools, for instance.
Now try to rename or delete the file with Salamander:
---------------------------
Error Renaming File
---------------------------
(32) The process cannot access the file because it is being used by another process.
The way to fix this is to prepend \\?\ to the absolute path:

Code: Select all

del "\\?\C:\Temp\..."
Maybe it's as easy as retrying failed file operations with \\?\ prepended? :idea:

I'm not talking about Unicode support, although I think that's related.
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: Support special filenames

Post by Ether »

+1 from me.
Ελληνικά rulez.
Post Reply