bagit-python icon indicating copy to clipboard operation
bagit-python copied to clipboard

Alternate method of making temp data folder to account for domain-joined windows accounts #193

Open kieranjol opened this issue 5 months ago • 1 comments

This is a fix for #193 and uses an alternative method (os.mkdir) instead of tempfile.mkdtemp to work correctly with domain-joined windows accounts with regards to permissions. I'm very open to any other methods of working around this issue!

kieranjol avatar Aug 19 '25 10:08 kieranjol

It could be good to hear from @edsu as some tempfile issues arose before regarding permissions: https://github.com/LibraryOfCongress/bagit-python/issues/22 and this was the commit that introduced tempfile https://github.com/LibraryOfCongress/bagit-python/commit/a7c44b59e8ceded4df9bccbac6d3c5895c4aa1af in order to fix this issue around bag.save() https://github.com/LibraryOfCongress/bagit-python/issues/29

kieranjol avatar Aug 19 '25 11:08 kieranjol