ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Yang-z on October 24, 2023, 11:51:04 AM

Title: turn off error caused by reading empty file
Post by: Yang-z on October 24, 2023, 11:51:04 AM
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.
Title: Re: turn off error caused by reading empty file
Post by: Phil Harvey on October 24, 2023, 01:02:25 PM
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