Skip to content

Commit

Permalink
Merge pull request googleapis#241 from lamductan/patch-1
Browse files Browse the repository at this point in the history
fix download file bug
  • Loading branch information
Alejandro Casanovas authored May 23, 2019
2 parents 372574a + 132607c commit 0494f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/onedrive_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def download_file(self, filename, to_path=None):
if not os.path.exists(to_path):
os.makedirs(to_path)
try:
file = list(filter(lambda x: basename in x.name, items))[0]
file = list(filter(lambda x: basename == x.name, items))[0]
print('Downloading file ' + filename)
file.download(to_path, chunk_size=CHUNK_SIZE)
return True
Expand Down

0 comments on commit 0494f5b

Please sign in to comment.