smartfile / client-python

SmartFile API Client (Python).
http://app.smartfile.com/api/
MIT License
20 stars 7 forks source link

download method: optional path to write file #22

Open chaps opened 6 years ago

chaps commented 6 years ago

When calling the download method , a file object is created with the same path as the requested file to download , paths like /Documents/somefile won't exist usually under the local filesystems where the library is being used .

The default path to write the file contents could be the local CWD plus the name of the file being downloaded , and the method could accept a keyword argument in order to explicitly tell the desired path where to write the file contents.

cabarnes commented 6 years ago

@chaps Is this what you're looking for? https://github.com/smartfile/client-python/pull/17

chaps commented 6 years ago

Hi @cabarnes , I'm looking for something more like this : https://github.com/chaps/client-python/commit/89a816a4fc30b562002b8b5c14189ad6b4afb52c let me know if this fits in order to submit a PR thanks!