mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 23:09:32 +01:00
remote: base: call makedirs in move
Remotes like s3/gs/etc don't need to create dirs in advance. Signed-off-by: Ruslan Kuprieiev <[email protected]>
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