spaces at ends of filenames or directory names on Win32

Christos Georgiou tzot at sil-tec.gr
Thu Mar 2 05:31:21 EST 2006


On Thu, 23 Feb 2006 17:49:31 -0600, rumours say that Larry Bates
<larry.bates at websafe.com> might have written:

>IMHO leading and/or trailing spaces in filenames is asking for
>incompatibilities with cross-platform file access.  Much like
>using single-quote in filenames which are perfectly legal in
>DOS/Windows, but Linux doesn't like much.

Just for those who don't know, in general *nix operating systems (and the
various *nix file systems) disallow only '\0' and '/' in filenames.  The '/'
because obviously is the path separator, and '\0' because it's the
end-of-string marker in C.

When Larry said "Linux", he actually meant the shell he uses.
-- 
TZOTZIOY, I speak England very best.
"Dear Paul,
please stop spamming us."
The Corinthians



More information about the Python-list mailing list