Feature #644

rename with directories

Added by Karel Vervaeke over 9 years ago. Updated almost 3 years ago.

Status:NewStart date:11 Aug 2009
Priority:NormalDue date:
Assignee:-% Done:


Target version:1.0


It would be nice if exiv2 would silently create non-existing directories when renaming.
See the command below, for example:

karel@banana:~/tmp/29$ exiv2 -r %Y/%m/%d/:basename: p1020360.jpg
exiv2: Failed to rename p1020360.jpg to ./2009/03/29/p1020360.jpg: (2)


#1 Updated by Raphael Vullriede about 5 years ago

I'm looking for exactly the same functionality. Due to an increasing amount of RAW formats in my collection i moved from jhead to exiv2.
In jhead it is possible to include (non-existing) subdirectories in the format pattern and these are automatically created (if not existing), e.g.:


It would be great if exiv2 could support a similar feature.

#2 Updated by Karel Vervaeke about 5 years ago

FWIW I'm currently using 'exiftool' for that. It handles raw as well (at least the raw files I'm dealing with)

alias ymd='exiftool "-Directory<DateTimeOriginal" -d %Y/%m/%d .'

#3 Updated by Raphael Vullriede about 5 years ago

Cool, thanks for the hint, that helps a lot and eases the pain. I'm more than satisfied with this solution :-)

#4 Updated by Robin Mills over 3 years ago

  • Target version set to 53

#5 Updated by Robin Mills almost 3 years ago

  • Category set to basicio
  • Target version changed from 53 to 1.0

I'm moving this to target version 1.0. I'll consider this for implementation in v0.27. I haven't opened target v0.27 yet.

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux