Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dvc/remote/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,9 @@ def walk_files(self, path_info, **kwargs):
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)
Expand Down
2 changes: 1 addition & 1 deletion tests/remotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def create_dir(dvc, url):
"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():
Expand Down