Skip to content

Commit 0968f90

Browse files
erpaswonder-sk
authored andcommitted
Fix for creating sqlite copy for upload.
1 parent f6686b3 commit 0968f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mergin/merginproject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def copy_versioned_file_for_upload(self, f, tmp_dir):
347347
path = f["path"]
348348
self.log.info("Making a temporary copy (full upload): " + path)
349349
tmp_file = os.path.join(tmp_dir, path)
350-
os.makedirs(tmp_file, exist_ok=True)
350+
os.makedirs(os.path.dirname(tmp_file), exist_ok=True)
351351
self.geodiff.make_copy_sqlite(self.fpath(path), tmp_file)
352352
f["size"] = os.path.getsize(tmp_file)
353353
f["checksum"] = generate_checksum(tmp_file)

0 commit comments

Comments
 (0)