ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: obetz on July 01, 2019, 05:45:18 AM

Title: Dealing with filenames starting with a hyphen "-"
Post by: obetz on July 01, 2019, 05:45:18 AM
Hi all,

anybody out there working with filenames starting with a hyphen, e.g. "-foo.jpg" or even "-ver"?

Although this would be no more "Posix portable", it's allowed by the OS.

What is a clean way to pass such a filename to ExifTool, prepending with "./"?

Oliver
Title: Re: Dealing with filenames starting with a hyphen "-"
Post by: Phil Harvey on July 01, 2019, 06:26:08 AM
Yes.  Put the directory name before the file name if the file name begins with a dash.

- Phil