ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: mcquiff on October 05, 2017, 06:46:22 AM

Title: Tmp file creation
Post by: mcquiff on October 05, 2017, 06:46:22 AM
Hi this is the line that I use
/usr/local/bin/exiftool -a -api PNGEarlyXMP -overwrite_original_in_place -XMP:description='5031827682617_test' '/Volumes/CloudStorage/Dropbox/__Sorting__/HotFolderA/5031827682617_test.JPG'

Its part of a bigger script where files get moved after. However occassionally I see a file like this appear.

5031827682617.JPG_exiftool_tmp

can I prevent that from happening? Ideally I need it to update the file directly.

Thanks
Matt
Title: Re: Tmp file creation
Post by: StarGeek on October 05, 2017, 06:53:17 AM
Unless something has changed in the past few months, no, you can't.

Previous post (https://exiftool.org/forum/index.php/topic,8379.msg43047.html#msg43047) on the subject.
Title: Re: Tmp file creation
Post by: mcquiff on October 05, 2017, 07:17:04 AM
Thanks for that. Can it be created elsewhere so not in the same folder?
Title: Re: Tmp file creation
Post by: Phil Harvey on October 05, 2017, 07:35:54 AM
Sorry, the temporary file is always created in the same directory as the target.  If possible, you should configure your scripts to ignore files with names ending in "_exiftool_tmp".

- Phil
Title: Re: Tmp file creation
Post by: mcquiff on October 05, 2017, 08:04:51 AM
The obvious!!! no added to ignore in the script

Thanks

Matt