Question to hidden directories

Started by herb, March 06, 2020, 05:43:49 AM

Previous topic - Next topic

herb

Hello Phil,

Somewhere in 2015 I learned with your help to avoid that Exiftool modifies hidden files in case of e.g. all *.jpg files are to be modified.
See following command:
exiftool -api systemtags -if not "$fileattributes=~/Hidden/" -exampletag=examplevalue -ext jpg DIR

Now my question is:
Can such kind of -if also be used to avoid that Exiftool does not read hidden directories in case of e.g. all *.jpg files in all not-hidden sub-directories are to be modfied.

Thanks for your help in advance
Best regards
Herb

Phil Harvey

Hi Herb,

There are only two ways to stop ExifTool from recursing into a directory:

1. If the directory name starts with a "."

2. If the directory name matches one specified by a -i option

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

herb

Hello Phil,

thanks for the detailed explanation.

Best regards
Herb