Request -q or -m silences 'No SourceFile in imported CSV database' error message

Started by alanterra, April 01, 2021, 02:46:29 PM

Previous topic - Next topic

alanterra

Perhaps (probably!) I don't understand something, but I am finding the error message 'No SourceFile in imported CSV database' quite distracting.

I create a csv file with a few hundred of the few thousand files in my hierarchy with a exiftool -csv -if '...' -r . > out.csv command, where the -if matches only some of the files. I then edit the file and want to reapply my changes, and I get an error message for every file that the -if omitted.

Of course, I can redirect errors to another place, but it seems that this mismatch should be treated as a minor error. (From the manual: "Generally, minor errors/warnings indicate a problem which usually won't result in loss of metadata if ignored.")

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).