Seymore4Head <Seymore4Head@Hotmail.invalid> writes:
> How can I modify the code to search through a directory of files that
> have different filenames, but the same extension?

Use the os.listdir function to read the directory.  It gives you a list
of filenames that you can filter for the extension you want.

Per Mark Lawrence, there's also a glob function.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to