From 5db382c9af1ca27b36465bbd71a242f5427f8871 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Mon, 28 Jan 2019 20:56:53 -0800 Subject: [PATCH] minor: clarify the comment around local remote move operation --- dvc/remote/local.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dvc/remote/local.py b/dvc/remote/local.py index 4815d5aba..e455d4160 100644 --- a/dvc/remote/local.py +++ b/dvc/remote/local.py @@ -357,8 +357,9 @@ class RemoteLOCAL(RemoteBase): self.safe_remove({'scheme': 'local', 'path': file}, force=force) def _move(self, inp, outp): - # moving in two stages to make last the move atomic in - # case inp and outp are in different filesystems + # moving in two stages to make the whole operation atomic in + # case inp and outp are in different filesystems and actual + # physical copying of data is happening tmp = '{}.{}'.format(outp, str(uuid.uuid4())) move(inp, tmp) move(tmp, outp)