We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7498a5e commit 9ec3763Copy full SHA for 9ec3763
1 file changed
bagit.py
@@ -214,7 +214,8 @@ def make_bag(
214
# FIXME: if we calculate full paths we won't need to deal with changing directories
215
os.chdir(bag_dir)
216
cwd = os.getcwd()
217
- temp_data = tempfile.mkdtemp(dir=cwd)
+ temp_data = os.path.join(cwd, next(tempfile._get_candidate_names()))
218
+ os.mkdir(temp_data)
219
220
for f in os.listdir("."):
221
if os.path.abspath(f) == temp_data:
0 commit comments