How to check if a path *could* be a legal path?

Heather Coppersmith me at privacy.net
Sat Apr 24 09:59:12 EDT 2004


On Sat, 24 Apr 2004 08:52:31 -0400,
Peter Hansen <peter at engcorp.com> wrote:

> Jorgen Grahn wrote:

>> By the way, for Unix the test is pretty easy. It's more or less
>> def isValid(path): return path and not '\0' in path

> Aren't there also length limits, and limits which differ
> depending on the specific *nix variant one has?

And "/" is still reserved for the directory separator.

Regards,
Heather

-- 
Heather Coppersmith
That's not right; that's not even wrong. -- Wolfgang Pauli



More information about the Python-list mailing list