Feature #644
rename with directories
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
Updated by Raphael Vullriede almost 8 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.
Updated by Karel Vervaeke almost 8 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 .'
Updated by Raphael Vullriede almost 8 years ago
Cool, thanks for the hint, that helps a lot and eases the pain. I'm more than satisfied with this solution :-)
Updated by Robin Mills over 5 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.