I'm looking to use Python to iterate through all the files in a folder and run the exiftool
command on each file, so in the end I should have x
amount of files each with their own exiftool
output to run grep
commands on.
Currently I have this code (I made it from pseudocode I took down whilst at a lecture, so it's probably not that accurate)
#!/usr/bin/python
import os
import subprocess
import sys
for root,dirs,files in os.walk(".", topdown=False):
for name in files:
print("echo", os.path.join(root, name))
subprocess.call(["exiftool", os.path.join(root, name)])