Error: .... already exists - Trying to copy files to new directories

Started by sjDelaney, October 04, 2016, 04:02:28 PM

Previous topic - Next topic

sjDelaney

Code is:
  exiftool -r -v -o '-directory</Volumes/D512/ProofsByName/${Subject;$_=/~ *(.*?) *: *(.*?) *:/ ? qq($1/$2) : undef}' '/Volumes/D512'

Error Msg:
======== /Volumes/D512/POTC Proofs - Friday/20160909-080722.jpg
Error: '-directory</Volumes/D512/ProofsByName/${Subject;$_=/~ *(.*?) *: *(.*?) *:/ ? qq($1/$2) : undef}' already exists - /Volumes/D512/POTC Proofs - Friday/20160909-080722.jpg

I'm using a MAC.

Phil Harvey

You're using the -o option which expects an output file name or directory.  I assume you are using this to duplicate the file.  You should use "-o ." or "-o dummy/" instead of just "-o".

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).