mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 23:10:10 +01:00
Merge pull request #2384 from efiop/2361
remote: base: call makedirs in move
This commit is contained in:
@@ -364,7 +364,6 @@ class RemoteBASE(object):
|
||||
|
||||
cache_info = self.checksum_to_path_info(checksum)
|
||||
if self.changed_cache(checksum):
|
||||
self.makedirs(cache_info.parent)
|
||||
self.move(path_info, cache_info)
|
||||
else:
|
||||
self.remove(path_info)
|
||||
|
||||
@@ -243,6 +243,8 @@ class RemoteLOCAL(RemoteBASE):
|
||||
if from_info.scheme != "local" or to_info.scheme != "local":
|
||||
raise NotImplementedError
|
||||
|
||||
self.makedirs(to_info.parent)
|
||||
|
||||
if self.isfile(from_info):
|
||||
mode = self._file_mode
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user