Project

General

Profile

Feature #644

rename with directories

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

Status:
New
Priority:
Normal
Assignee:
-
Category:
basicio
Target version:
Start date:
11 Aug 2009
Due date:
% Done:

0%

Estimated time:

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 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.:

%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 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 over 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 about 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