trouble with os.path.exists() and wildcards
Erik Max Francis
max at alcyone.com
Mon Nov 17 05:40:56 EST 2003
More information about the Python-list mailing list
Mon Nov 17 05:40:56 EST 2003
- Previous message (by thread): trouble with os.path.exists() and wildcards
- Next message (by thread): trouble with os.path.exists() and wildcards
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): trouble with os.path.exists() and wildcards
- Next message (by thread): trouble with os.path.exists() and wildcards
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list