gdrive: pop prefix kwarg (#4157)

https://travis-ci.com/github/iterative/dvc/jobs/357157580#L8485
This commit is contained in:
Ruslan Kuprieiev
2020-07-03 03:04:26 +03:00
committed by GitHub
parent bd9eb8faba
commit bb2cf74328
+2 -1
View File
@@ -553,7 +553,8 @@ class GDriveRemoteTree(BaseRemoteTree):
)
def walk_files(self, path_info, **kwargs):
if path_info == self.path_info or not kwargs.pop("prefix", False):
use_prefix = kwargs.pop("prefix", False)
if path_info == self.path_info or not use_prefix:
prefix = None
else:
prefix = path_info.path