News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Problem using -r flag

Started by Archive, May 12, 2010, 08:54:31 AM

Previous topic - Next topic

Archive

[Originally posted by cjsmall on 2009-02-21 04:11:37-08]

I was trying to recursively reset some tags on images under a directory using the following command:

    exiftool -overwrite_original "-ImageDescription<UserComment" -ext jpg -ext mrw -r .

               
and this works fine unless exiftool encounters a directory for which you do not have permission to descend.  At this point it prints an error message:

    Error opening directory <name>

   
and exits without performing the task.  This happens even if the -m flag is specified.  You can reproduce this easily by making a simple set of directories and files such as:

w/

w/image1.jpg

w/x/

w/x/image2.jpg

w/y/

w/y/image3.jpg

and chmod 000 w/y.  Now, when you run the command, on directory w, it will complain about access to "y" and will stop without completing the task. This just seems wrong to me.  The warning message is fine, but the command should continue to execute, simply skipping the offending directories. What do you think Phil?

exiftool 7.69 on Solaris/SPARC.

Regards,

--

Jeffery Small

Archive

[Originally posted by exiftool on 2009-02-21 13:54:02-08]

Hi Jeffery,

Good point.  I will change this.

- Phil