Skip to content

Commit 6602798

Browse files
authored
Merge pull request #655 from GitSumito/bugfix/upload_large_file
fix typo
2 parents b5e22b5 + 0729a4e commit 6602798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/onedrive/upload_large_file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
chunk_size = 5 * 1024 * 1024
1111

1212

13-
def upload_file(local_path, remove_folder):
13+
def upload_file(local_path, remote_folder):
1414
"""
1515
:type local_path: str
16-
:type remove_folder: office365.onedrive.driveitems.driveItem.DriveItem
16+
:type remote_folder: office365.onedrive.driveitems.driveItem.DriveItem
1717
"""
1818

1919
def print_progress(range_pos):
2020
print("{0} bytes uploaded".format(range_pos))
2121

22-
remote_file = remove_folder.resumable_upload(local_path, chunk_size=chunk_size,
22+
remote_file = remote_folder.resumable_upload(local_path, chunk_size=chunk_size,
2323
chunk_uploaded=print_progress).get().execute_query()
2424
print(f"File {remote_file.web_url} has been uploaded")
2525

0 commit comments

Comments
 (0)