spaces at ends of filenames or directory names on Win32
Tim Roberts
timr at probo.com
Sun Feb 26 23:53:34 EST 2006
drobinow at gmail.com wrote:
>For example... tell windows to move a file named ' XXX ' (one space
>before and one space after the filename). Windows will complain that
>file 'XXX' does not exist. It's correct of course, 'XXX' does not
>exist,
>but ' XXX ' does indeed exist.
>
>Can anyone rescue me from this madness :(
Use double-quotes on Windows, not single-quotes. Single-quotes are taken
as just another filename character.
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list