We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5e22b5 + 0729a4e commit 6602798Copy full SHA for 6602798
examples/onedrive/upload_large_file.py
@@ -10,16 +10,16 @@
10
chunk_size = 5 * 1024 * 1024
11
12
13
-def upload_file(local_path, remove_folder):
+def upload_file(local_path, remote_folder):
14
"""
15
:type local_path: str
16
- :type remove_folder: office365.onedrive.driveitems.driveItem.DriveItem
+ :type remote_folder: office365.onedrive.driveitems.driveItem.DriveItem
17
18
19
def print_progress(range_pos):
20
print("{0} bytes uploaded".format(range_pos))
21
22
- remote_file = remove_folder.resumable_upload(local_path, chunk_size=chunk_size,
+ remote_file = remote_folder.resumable_upload(local_path, chunk_size=chunk_size,
23
chunk_uploaded=print_progress).get().execute_query()
24
print(f"File {remote_file.web_url} has been uploaded")
25
0 commit comments