os.access with wildcards
Dan Sommers
me at privacy.net
Fri Oct 7 19:55:38 EDT 2005
On 7 Oct 2005 16:17:22 -0700,
"mike" <no.mail.here.at.here at gmail.com> wrote:
> Thanks Mike. Would there be an idiom using "is"?
> somethng like
> glob.glob('2005*) is not Empty
> I have not figured out what to put on the right hand
> side of "is"
Don't put anything there:
if glob.glob('2005*'):
print 'there is at least one matching file'
else:
print 'there are no matching files'
Regards,
Dan
--
Dan Sommers
<http://www.tombstonezero.net/dan/>
More information about the Python-list
mailing list