Skip to content

Commit 9ec3763

Browse files
authored
Alternate method of making temp data folder to account for domain-joined windows accounts #193
1 parent 7498a5e commit 9ec3763

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bagit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ def make_bag(
214214
# FIXME: if we calculate full paths we won't need to deal with changing directories
215215
os.chdir(bag_dir)
216216
cwd = os.getcwd()
217-
temp_data = tempfile.mkdtemp(dir=cwd)
217+
temp_data = os.path.join(cwd, next(tempfile._get_candidate_names()))
218+
os.mkdir(temp_data)
218219

219220
for f in os.listdir("."):
220221
if os.path.abspath(f) == temp_data:

0 commit comments

Comments
 (0)