iptcinfo3 icon indicating copy to clipboard operation
iptcinfo3 copied to clipboard

A temporary file with ~ at the end

Open fdrov opened this issue 3 years ago • 5 comments

Hi! Thx for the lib. After info.save() it creates a temporary file with ~ at the end. Windows 11, python 3.9. There is any way to close file, something like info.close()?

fdrov avatar Sep 12 '22 16:09 fdrov

I have to look into it, and PR would be reviewed related to this if you want to try to implement something.

james-see avatar Aug 01 '23 17:08 james-see

Created here, I think

https://github.com/james-see/iptcinfo3/blob/dfbfd902f64205ad42517dce288b46e06bc4b585/iptcinfo3.py#L700

It seems like it's intended to not create this file if you do something like .save('overwrite') or .save(options='overwrite') but that doesn't work for me.

cwpearson avatar Aug 10 '23 11:08 cwpearson

I don't have time to look into this, I would just add a line in python to remove it if you really want to force remove that. I think it should auto-clean that up when the code completes. If someone wants to sponsor this project I can look back at it.

james-see avatar Sep 04 '23 02:09 james-see

This issue has been fixed in this PR: https://github.com/james-see/iptcinfo3/pull/29. However, the version has not been updated on PyPI meaning that people can't get to it.

james-ro-williams avatar Jan 15 '24 10:01 james-ro-williams

This issue has been fixed in this PR: https://github.com/james-see/iptcinfo3/pull/29. However, the version has not been updated on PyPI meaning that people can't get to it.

I thought it was updated in pypi? I will check on this. Thanks for the heads up.

james-see avatar Jan 15 '24 18:01 james-see