Skip to content

Commit

Permalink
docs: Fix examples of moving and copying items (#672)
Browse files Browse the repository at this point in the history
Closes: SDK-1972
  • Loading branch information
lukaszsocha2 committed Feb 2, 2022
1 parent 9c94d08 commit 928d4c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/usage/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ destination_folder_id = '44444'
file_to_move = client.file(file_id)
destination_folder = client.folder(destination_folder_id)

moved_file = file_to_move.move(destination_folder)
moved_file = file_to_move.move(parent_folder=destination_folder)
print(f'File "{moved_file.name}" has been moved into folder "{moved_file.parent.name}"')
```

Expand Down
4 changes: 2 additions & 2 deletions docs/usage/folders.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ destination_folder_id = '44444'
folder_to_copy = client.folder(folder_id)
destination_folder = client.folder(destination_folder_id)

folder_copy = folder_to_copy.copy(destination_folder)
folder_copy = folder_to_copy.copy(parent_folder=destination_folder)
print(f'Folder "{folder_copy.name}" has been copied into folder "{folder_copy.parent.name}"')
```

Expand All @@ -156,7 +156,7 @@ destination_folder_id = '44444'
folder_to_move = client.folder(folder_id)
destination_folder = client.folder(destination_folder_id)

moved_folder = folder_to_move.move(destination_folder)
moved_folder = folder_to_move.move(parent_folder=destination_folder)
print(f'Folder "{moved_folder.name}" has been moved into folder "{moved_folder.parent.name}"')
```

Expand Down
2 changes: 1 addition & 1 deletion docs/usage/web_link.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ destination_folder_id = '44444'
web_link_to_move = client.web_link(web_link_id)
destination_folder = client.folder(destination_folder_id)

moved_web_link = web_link_to_move.move(destination_folder)
moved_web_link = web_link_to_move.move(parent_folder=destination_folder)
print(f'Web link "{moved_web_link.name}" has been moved into folder "{moved_web_link.parent.name}"')
```

Expand Down

0 comments on commit 928d4c3

Please sign in to comment.