mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 07:18:28 +01:00
sftp: only remove src after an atomic copy during move
Shout-out to @Suor for pointing this out
This commit is contained in:
@@ -196,8 +196,7 @@ class SSHConnection:
|
||||
self.sftp.rename(src, dst)
|
||||
except OSError:
|
||||
self._atomic_copy(src, dst)
|
||||
|
||||
self.remove(src)
|
||||
self.remove(src)
|
||||
|
||||
def _atomic_copy(self, src, dst):
|
||||
tmp = tmp_fname(dst)
|
||||
|
||||
Reference in New Issue
Block a user