Skip to content

Commit c95807e

Browse files
cpaulikbgoesswe
authored andcommitted
Make it possible to download file in remote 'folder'
1 parent 92a351c commit c95807e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

openeo/rest/rest_session.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,7 @@ def user_download_file(self, file_path, output_file):
218218
:return: status: True if it was successful, False otherwise
219219
"""
220220

221-
filename = os.path.basename(file_path)
222-
223-
path = "/users/{}/files/{}".format(self.userid, filename)
221+
path = "/users/{}/files/{}".format(self.userid, file_path)
224222

225223
resp = self.get(path, stream=True)
226224

0 commit comments

Comments
 (0)