Creating directory folders from album names

Started by zanco, November 28, 2020, 02:51:19 PM

Previous topic - Next topic

zanco

Hi - I embedded folder names that I'd like to sort my files into a TAG called ReelName. In this example the ReelName is '2010.05 - Noa'.

I'm getting an error creating the directory using this command: exiftool '-directory<ReelName' 2010-05-27_0306_4688502941_o.jpg

The error is:
Error creating directory 2010.05 - Noa
Warning: Error creating directory for '2010.05 - Noa/2010-05-27_0306_4688502941_o.jpg' - 2010-05-27_0306_4688502941_o.jpg

Any ideas on how to correct? Is it because of the spaces within the new directory name? Thank you!

StarGeek

It appears that exiftool is trying to create a directory named 2010.05 - Noa/2010-05-27_0306_4688502941_o.jpg, not a directory named 2010.05 - Noa.  Double check the actual value of ReelName with exiftool (exiftool -g1 -a -s -ReelName 2010-05-27_0306_4688502941_o.jpg).   Also double check there isn't already a file named 2010-05-27_0306_4688502941_o.jpg in the 2010.05 - Noa directory.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

zanco

ReelName seems to be set correctly and there aren't any other folders already created that might conflict with it:

$ exiftool -g1 -a -s -ReelName 2010-05-27_0305_4689132410_o.jpg
---- IFD0 ----
ReelName                        : 2010.05 - Noa

Luuk2005

Greetings Zanco..  Maybe there can be permission problem, so to try command in same directory like ... mkdir TestFolder
Windows8.1-64bit, exiftool-v12.11(standalone), sed-v4.0.7

zanco

Thought that at first too but permissions are correct and I can mkdir without issues. Same issue as sudo.

Luuk2005

The only other issues I find on the forum is sometimes tags to have "invisible non-printable control characters".
So maybe to do experiments with -directory'<${ReelName;}' or  -directory'<SomeOtherTag' to test the results.
Windows8.1-64bit, exiftool-v12.11(standalone), sed-v4.0.7

StarGeek

Are you able to share the image so we can take a look at it?
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

zanco

success! this was the issue and it works with this change. thank you!

Quote from: Luuk2005 on November 29, 2020, 01:58:18 PM
The only other issues I find on the forum is sometimes tags to have "invisible non-printable control characters".
So maybe to do experiments with -directory'<${ReelName;}' or  -directory'<SomeOtherTag' to test the results.