From 928d4c3d2b936f7bb263643ef3151281072293a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Socha?= <31014760+lukaszsocha2@users.noreply.github.com> Date: Wed, 2 Feb 2022 17:50:27 +0100 Subject: [PATCH] docs: Fix examples of moving and copying items (#672) Closes: SDK-1972 --- docs/usage/files.md | 2 +- docs/usage/folders.md | 4 ++-- docs/usage/web_link.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/usage/files.md b/docs/usage/files.md index 3a37a930..df47c610 100644 --- a/docs/usage/files.md +++ b/docs/usage/files.md @@ -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}"') ``` diff --git a/docs/usage/folders.md b/docs/usage/folders.md index f265f91f..56463396 100644 --- a/docs/usage/folders.md +++ b/docs/usage/folders.md @@ -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}"') ``` @@ -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}"') ``` diff --git a/docs/usage/web_link.md b/docs/usage/web_link.md index 9589dd8b..518ca774 100644 --- a/docs/usage/web_link.md +++ b/docs/usage/web_link.md @@ -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}"') ```