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

Peter Hansen peter at engcorp.com
Sat Apr 24 08:52:31 EDT 2004


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?

-Peter



More information about the Python-list mailing list