ExifTool Forum

ExifTool => Developers => Topic started by: herb on March 06, 2020, 05:43:49 AM

Title: Question to hidden directories
Post by: herb on March 06, 2020, 05:43:49 AM
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
Title: Re: Question to hidden directories
Post by: Phil Harvey on March 06, 2020, 07:06:38 AM
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
Title: Re: Question to hidden directories
Post by: herb on March 06, 2020, 08:19:25 AM
Hello Phil,

thanks for the detailed explanation.

Best regards
Herb