Skip to content

Commit

Permalink
#112 added folder option to request parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Castronova committed Oct 17, 2019
1 parent 04f15d9 commit ad77bb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hs_restclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def _prepareFileForUpload(self, request_params, resource_file, resource_filename
else:
mime_type = mime_type[0]
request_params['file'] = (fname, fd, mime_type)
request_params['folder'] = os.path.dirname(fname)
return close_fd

def getResourceList(self, **kwargs):
Expand Down

0 comments on commit ad77bb0

Please sign in to comment.