Skip to content

Commit 714af09

Browse files
committed
Fix multitool.py file download example not saving the file
It downloaded the contents and then threw them away
1 parent 548e03c commit 714af09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/collaboration/examples/multitool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def main():
237237
print(f"Unknown File: {args.name}")
238238
sys.exit(1)
239239
with TqdmProgress(desc="", leave=False) as t:
240-
file.download_contents(lambda cur, max: t.progress(cur, max))
240+
file.download(lambda cur, max: t.progress(cur, max))
241241
print_file_info(file)
242242
elif args.file_command == "delete":
243243
file = project.get_file_by_name(args.name)

0 commit comments

Comments
 (0)