From dcdb1809974b75ae03972c5dddda637e0b881bb9 Mon Sep 17 00:00:00 2001 From: Robin Andersson Date: Wed, 18 Oct 2023 11:08:41 +0000 Subject: [PATCH] fix --- python/hopsworks/core/dataset_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/hopsworks/core/dataset_api.py b/python/hopsworks/core/dataset_api.py index 5cc2fa308..9fb29e73c 100644 --- a/python/hopsworks/core/dataset_api.py +++ b/python/hopsworks/core/dataset_api.py @@ -400,7 +400,7 @@ def copy(self, source_path: str, destination_path: str): dataset_api = project.get_dataset_api() - directory_path = dataset_api.copy("Resources/myfile.txt", "Logs/myfile.txt") + directory_path = dataset_api.copy("Resources/myfile.txt", "Logs") ``` # Arguments @@ -410,7 +410,7 @@ def copy(self, source_path: str, destination_path: str): `RestAPIError`: If unable to perform the copy """ _client = client.get_instance() - path_params = ["project", self._project_id, "dataset", path] + path_params = ["project", self._project_id, "dataset", source_path] query_params = { "action": "copy", "destination_path": destination_path, @@ -430,7 +430,7 @@ def move(self, source_path: str, destination_path: str): dataset_api = project.get_dataset_api() - directory_path = dataset_api.move("Resources/myfile.txt", "Logs/myfile.txt") + directory_path = dataset_api.move("Resources/myfile.txt", "Logs") ``` # Arguments @@ -440,7 +440,7 @@ def move(self, source_path: str, destination_path: str): `RestAPIError`: If unable to perform the move """ _client = client.get_instance() - path_params = ["project", self._project_id, "dataset", path] + path_params = ["project", self._project_id, "dataset", source_path] query_params = { "action": "move", "destination_path": destination_path,