This issue has been added to the tracker:
Issue 45 – Cannot download file ending with space
Issue 45 – Cannot download file ending with space
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
C:\Temp>copy con "\\?\C:\temp\foo.txt "
blah blah
^Z
1 file(s) copied.
C:\Temp>dir foo.txt
Volume in drive C has no label.
Volume Serial Number is 28BC-75F3
Directory of C:\Temp
File Not Found
C:\Temp>dir f*
Volume in drive C has no label.
Volume Serial Number is BARF-FARB
Directory of C:\Temp
05/02/2007 11:49 PM 11 foo.txt
1 File(s) 11 bytes
0 Dir(s),555,555,555,555 bytes free
C:\Temp>type "\\?\C:\temp\foo.txt "
blah blah
C:\Temp>
CreateFile() API strips spaces. I think files ending in space may not be "officially supported" by Microsoft, but I'm not sure about that.
copy and type, that's why your commands work. Actual file name is foo.txt (without space).
C:\temp>copy con "foo.txt "
Hello there
^Z
1 file(s) copied.
C:\temp>type "foo.txt "
Hello there
- replace spaces in dirname by something else,
. 2007-04-24 13:55:34.062 Copying "/xmap/xx xxxxxxx/XMAP /1ETAT1.FRX" to local directory started.
. 2007-04-24 13:55:34.062 Binary transfer mode selected.
* 2007-04-24 13:55:34.062 (ExtException)
. 2007-04-24 13:55:34.062 Asking user:
. 2007-04-24 13:55:34.062 Can't create file 'C:\Documents and Settings\Administrateur\Mes documents\XMAP \1ETAT1.FRX'. ()