Feature #644

rename with directories

Added by Karel Vervaeke about 8 years ago. Updated over 1 year ago.

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

0%

Category:basicio
Target version:1.0

Description

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)

History

#1 Updated by Raphael Vullriede over 3 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.:

%Y-%m-%d/%Y-%m-%d_%H-%M-%S

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

#2 Updated by Karel Vervaeke over 3 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 over 3 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 about 2 years ago

  • Target version set to 53

#5 Updated by Robin Mills over 1 year 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