elodie icon indicating copy to clipboard operation
elodie copied to clipboard

Read-only source fails on exiftool trying to create a file in source directory

Open ibizaman opened this issue 10 years ago • 4 comments

When importing from a read-only source, I get the following error:

$ ./elodie.py import --source=~/Pictures/source --destination=~/Pictures/organized --album-from-folder
/usr/local/bin/exiftool -config "./elodie/configs/ExifTool_config" -xmp-elodie:Album="2015-08 MyEvent" "~/Pictures/source/2015/2015-08 MyEvent/P8242306.JPG"
Error: Error creating file: ~/Pictures/source/2015/2015-08 MyEvent/P8242306.JPG_exiftool_tmp - ~/Pictures/source/2015/2015-08 MyEvent/P8242306.JPG

And nothing is imported in the destination folder.

ibizaman avatar Dec 20 '15 01:12 ibizaman

The source files should never be modified. It looks like that is not the case when using --album-from-folder.

We call set_album on the source file but I need to see about calling that after the photo has already been copied to the destination folder.

Thanks for reporting this. It's a valid issue.

jmathai avatar Dec 20 '15 03:12 jmathai

I must say I didn't even think about removing the --album-from-folder argument.

ibizaman avatar Dec 20 '15 10:12 ibizaman

@ibizaman that should fix your problem but I'm leaving this open because --album-from-folder shouldn't behave this way.

jmathai avatar Dec 21 '15 06:12 jmathai

@jmathai yes of course

ibizaman avatar Dec 21 '15 08:12 ibizaman