Skip to content

Commit 4a1c79d

Browse files
committed
mkdir parents true
1 parent 8e16110 commit 4a1c79d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/aiida/tools/archive/create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def querybuilder():
294294
tmp_dir = Path(tmp_dir)
295295
if not tmp_dir.exists():
296296
EXPORT_LOGGER.warning(f"Specified temporary directory '{tmp_dir}' doesn't exist. Creating it.")
297-
tmp_dir.mkdir(parents=False)
297+
tmp_dir.mkdir(parents=True)
298298
if not tmp_dir.is_dir():
299299
msg = f"Specified temporary directory '{tmp_dir}' is not a directory"
300300
raise ArchiveExportError(msg)

tests/tools/archive/test_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def test_tmp_dir_custom_valid(tmp_path):
182182

183183

184184
@pytest.mark.usefixtures('aiida_profile_clean')
185-
def test_tmp_dir_validation_errors(tmp_path):
185+
def test_tmp_dir_file_error(tmp_path):
186186
"""Test tmp_dir validation errors."""
187187

188188
node = orm.Int(42).store()

0 commit comments

Comments
 (0)