Page 1 of 1

Support special filenames

Posted: 14 Jun 2013, 00:55
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.

Re: Support special filenames

Posted: 23 Jul 2013, 08:30
by Ether
+1 from me.