remote: fix remaining gdrive build issues (#3959)

* tests: fix gdrive build

* remote.gdrive: fix walk_files prefix relpath
This commit is contained in:
Peter Rowlands (변기호)
2020-06-05 15:36:47 +09:00
committed by GitHub
parent 803bb3eb61
commit b57077af11
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -537,8 +537,9 @@ class GDriveRemoteTree(BaseRemoteTree):
if path_info == self.path_info:
prefix = None
else:
prefix = path_info.relative_to(self.path_info).path
return self._list_paths(prefix=prefix, **kwargs)
prefix = path_info.path
for fname in self._list_paths(prefix=prefix, **kwargs):
yield path_info.replace(fname)
def remove(self, path_info):
item_id = self._get_item_id(path_info)
+1 -1
View File
@@ -150,7 +150,7 @@ class GDrive:
"gdrive_use_service_account": True,
}
remote = GDriveRemote(dvc, config)
remote._gdrive_create_dir("root", remote.path_info.path)
remote.tree._gdrive_create_dir("root", remote.path_info.path)
@staticmethod
def get_url():