mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 23:10:10 +01:00
remote: fix remaining gdrive build issues (#3959)
* tests: fix gdrive build * remote.gdrive: fix walk_files prefix relpath
This commit is contained in:
@@ -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
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user