In Python on a GNU/Linux system, what's the fastest way to recursively scan a directory for all .MOV
or .AVI
files, and to store them in a list?
You can use os.walk() for recuresive walking and glob.glob() or fnmatch.filter() for file matching:
Check this answer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With