os.access with wildcards

mike no.mail.here.at.here at gmail.com
Fri Oct 7 08:54:00 CEST 2005


thanks Leif.  poor question on my part.

I had been using

    glob.glob(path)==[]

and was looking for something more readable, hence

    os.system('[ -e %s ]' % path )

but that doesn't seem like a good idiom for crossplatform.

I thought there may either be a way to escape the wildcards, or an
alternative to os.access, or ....

any othr ideas?




More information about the Python-list mailing list