ExifTool Forum

ExifTool => Newbies => Topic started by: zanco on November 28, 2020, 02:51:19 PM

Title: Creating directory folders from album names
Post by: zanco on November 28, 2020, 02:51:19 PM
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!
Title: Re: Creating directory folders from album names
Post by: StarGeek on November 28, 2020, 03:18:50 PM
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.
Title: Re: Creating directory folders from album names
Post by: zanco on November 29, 2020, 12:18:23 PM
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
Title: Re: Creating directory folders from album names
Post by: Luuk2005 on November 29, 2020, 12:46:20 PM
Greetings Zanco..  Maybe there can be permission problem, so to try command in same directory like ... mkdir TestFolder
Title: Re: Creating directory folders from album names
Post by: zanco on November 29, 2020, 01:25:47 PM
Thought that at first too but permissions are correct and I can mkdir without issues. Same issue as sudo.
Title: Re: Creating directory folders from album names
Post by: 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.
Title: Re: Creating directory folders from album names
Post by: StarGeek on November 29, 2020, 02:08:10 PM
Are you able to share the image so we can take a look at it?
Title: Re: Creating directory folders from album names
Post by: zanco on November 29, 2020, 02:20:40 PM
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.