turn off error caused by reading empty file

Started by Yang-z, October 24, 2023, 11:51:04 AM

Previous topic - Next topic

Yang-z

when reading an empty file in cmd , the system metadata (such file modified time) could return, and an error message fellows.
Can I turn off that error, because some 3rd package refuse to pass any metadate since an error occurs.
Or, could you replace it with a warning? Empty file happens, no need to throw an error.

Thanks a lot.

Phil Harvey

It is an error in the same way that you get an "Unknown file type" error if ExifTool can't determine the file type.  This is just a specific instance of an unknown file type.

- Phil
...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 ($).