Commit 239f9e7b by Máhonfai Bálint

Add SSH download to store api and add path to SSH upload as well

parent e6d6cc46
...@@ -127,8 +127,12 @@ class Store(object): ...@@ -127,8 +127,12 @@ class Store(object):
r = self._request_cmd("UPLOAD", PATH=path) r = self._request_cmd("UPLOAD", PATH=path)
return r.json()['LINK'] return r.json()['LINK']
def request_ssh_upload(self): def request_ssh_download(self, path):
r = self._request_cmd("SSH_UPLOAD") r = self._request_cmd("SSH_DOWNLOAD", PATH=path)
return r.json()['LINK'], r.json()['PORT']
def request_ssh_upload(self, path):
r = self._request_cmd("SSH_UPLOAD", PATH=path)
return r.json()['LINK'], r.json()['PORT'] return r.json()['LINK'], r.json()['PORT']
def ssh_upload_finished(self, file_name, new_name): def ssh_upload_finished(self, file_name, new_name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment