Skip to content

Commit 56d8b8b

Browse files
committed
change directory where pull files are stored
1 parent 40f0ee8 commit 56d8b8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mergin/client_pull.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ def pull_project_async(mc, directory):
413413
# then we just download the whole file
414414
_pulling_file_with_diffs = lambda f: "diffs" in f and len(f["diffs"]) != 0
415415

416-
temp_dir = mp.fpath_meta(f"fetch_{local_version}-{server_version}")
416+
temp_dir_mergin = os.path.join(tempfile.gettempdir(), f"mergin-{mp.project_id()}")
417+
temp_dir = os.path.join(temp_dir_mergin, f"fetch_{local_version}-{server_version}")
417418
os.makedirs(temp_dir, exist_ok=True)
418419
pull_changes = mp.get_pull_changes(server_info["files"])
419420
mp.log.debug("pull changes:\n" + pprint.pformat(pull_changes))

0 commit comments

Comments
 (0)