trouble with os.path.exists() and wildcards

Fernando Rodriguez frr at easyjob.net
Tue Nov 18 03:54:27 EST 2003


On 17 Nov 2003 22:17:25 GMT, bokr at oz.net (Bengt Richter) wrote:


>>Besides, what else could expanding a wildcard mean except enumerating
>>every possible match?
>
>Sure, but then what? Maybe the OP was only interested if _any_ matches existed. E.g.,

Yes, that exactly what I wanted, and the glob trick works fine. Thanks. :-)






More information about the Python-list mailing list