ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Cici on October 01, 2024, 03:05:16 AM

Title: CSV SourceFile Extension
Post by: Cici on October 01, 2024, 03:05:16 AM
Is it possible to use a CSV with SourceFile names that don't include file extensions? For example, I plan to have a directory of DNG files, another of JPG files, TIF files, etc. All files have the same names but just different extensions. I would like to match the SourceFile name (no extension) to files of the same name regardless of the file extension.
Title: Re: CSV SourceFile Extension
Post by: Cici on October 01, 2024, 10:59:23 AM
For clarity, in each directory, all filenames are unique regardless of the extension. Although I could see how my request might be an issue if you had multiple files in the same directory with the same name but different extensions. For example, in the directory, you could have files: TestA.dng, TestA.tif and TestA.jpg. And in the CSV file, A SourceFile = /filedirectory/TestA (no extension). How would ExifTool know which file in the directory to process if you didn't use -ext jpg, for example, in the command line? Would it process all 3 files or just the first instance?
Title: Re: CSV SourceFile Extension
Post by: Phil Harvey on October 01, 2024, 11:13:52 AM
There is currently no way to do what you want.  The SourceFile column must currently contain a complete directory and file name.

- Phil
Title: Re: CSV SourceFile Extension
Post by: Cici on October 01, 2024, 03:25:08 PM
Thanks Phil. The more I thought about it, the more I guessed that was likely the case. I'll survive. Just one extra step.