From e3096444f29bf38cd2df3206cad6639eae49dc0c Mon Sep 17 00:00:00 2001 From: cskaandorp Date: Wed, 24 Apr 2024 21:55:34 +0200 Subject: [PATCH] Fix project import with mounted volumes in Docker (#1727) --- asreview/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asreview/project.py b/asreview/project.py index f10ebdf45..ac74c3536 100644 --- a/asreview/project.py +++ b/asreview/project.py @@ -690,8 +690,8 @@ def load(cls, asreview_file, project_path, safe_import=False): f.truncate() # location to copy file to - # Move the project from the temp folder to the projects folder. - os.replace(tmpdir, Path(project_path, project_config["id"])) + # Copy the project from the temp folder to the projects folder. + shutil.copytree(tmpdir, Path(project_path, project_config["id"])) return cls(Path(project_path, project_config["id"]))