Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 85a83f2

Browse files
james0209DanNixon
authored andcommitted
Add dirs_exist_ok as files should be overwritten (according to the docstring)
1 parent 7a5fd67 commit 85a83f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoreduce_qp/queue_processor/reduction/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def copy(self, destination: Path):
8888
:param destination: (Path like) the copy destination
8989
"""
9090
logger.info("Copying %s to %s", self.path, destination)
91-
copytree(self.path, str(destination)) # We have to convert path objects to str
91+
copytree(self.path, str(destination), dirs_exist_ok=True) # We have to convert path objects to str
9292

9393
@property
9494
def path(self) -> str:

0 commit comments

Comments
 (0)