Add test for new project creation path

This commit is contained in:
Veronica Berglyd Olsen
2024-02-03 15:34:08 +01:00
parent a11657c145
commit d5064a8333
3 changed files with 94 additions and 10 deletions
+2 -2
View File
@@ -477,9 +477,9 @@ class ProjectBuilder:
dstPath = path.resolve()
srcCont = srcPath / "content"
dstCont = dstPath / "content"
dstPath.mkdir(exist_ok=True)
dstCont.mkdir(exist_ok=True)
try:
dstPath.mkdir(exist_ok=True)
dstCont.mkdir(exist_ok=True)
if is_zipfile(source):
with ZipFile(source) as zipObj:
for member in zipObj.namelist():