File existence check with partial filename

Sang-Ho Yun Sang-Ho.Yun at jpl.nasa.gov
Mon Mar 15 05:57:39 CET 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