trouble with os.path.exists() and wildcards
Erik Max Francis
max at alcyone.com
Mon Nov 17 05:40:56 EST 2003
Fernando Rodriguez wrote:
> How can I check for the xistence of any file that matches a wildcard?
>
> For example: ppis-*.iss
>
> os.path.exists() doesn't expand the wildcard...
Use glob.glob and then os.path.exists in a loop.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \
\__/ Get married, but never to a man who is home all day.
-- George Bernard Shaw
More information about the Python-list
mailing list