SUGGEST: os.path.validate()?

Bjorn Pettersen bjorn at roguewave.com
Wed Jan 5 19:49:29 EST 2000


I would suggest creating a "filesystem" module for this since there are several
different cdrom formats in addition to all the os formats that would be interesting
(and one os might have multiple filesystems)...

just my $.02 worth
-bjorn

Gerrit Holl wrote:

> Hello,
>
> I've got a suggestion: what about a function os.path.validate()?
> For posix, it's easy:
> def validate(p):
>     return not '\0' in p
>
> but for Dos/Windows, it's harder, and I've no idea what's a valid
> path on Mac.
>
> regards,
> Gerrit.
>
> --
> -----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
> Version: 3.12
> GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O !M !V PS+ PE?
> Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
> -----END GEEK CODE BLOCK-----
>
> --
> http://www.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list