os.path.escape?

Alex Martelli aleaxit at yahoo.com
Fri May 18 13:05:45 EDT 2001


"Mike C. Fletcher" <mcfletch at home.com> wrote in message
news:mailman.990192687.650.python-list at python.org...
> Hi all, wondering if someone has such a beast they're willing to share.
> Basically something that, given an arbitrary "name" by the user,
eliminates
> all system-specific special characters (i.e. on Win32 and Mac, lets " "
> characters through, but not on *nix).  Will settle for Win32 specific if I

Why "not on *nix"...?  Unix filenames are allowed to have spaces
and lots of other strange things (you may have to quote them for
use from the shell, but that's no different from Win either).


Alex






More information about the Python-list mailing list