Test for the existence of one or more matches of the wildcard expression. For example:
Are there any files that begin with 2005?
This doesn't work (wish it did):
os.access('2005*',os.F_OK)
However, these work arounds do the job:
glob.glob('2005*')==[]
as does this bash command:
os.system('[ -e 2005* ]' )
The 1st is not very readable and the 2nd has portability issues.
--
http://mail.python.org/mailman/listinfo/python-list
