File existence check with partial filename

Sang-Ho Yun Sang-Ho.Yun at jpl.nasa.gov
Mon Mar 15 00:57:39 EDT 2010


I learned that I can check the existence of a file using
os.path.isfile("filename").

What if I need to check if there is a file that contains "HV" in the
filename?  What should I do?

Thank you,
Sang-Ho




More information about the Python-list mailing list