Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robzor92 committed Oct 18, 2023
1 parent 84f78f1 commit dcdb180
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/hopsworks/core/dataset_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit dcdb180

Please sign in to comment.