scottwernervt / cloudstorage

Unified cloud storage API for storage services.
http://cloudstorage.readthedocs.io/en/latest/
MIT License
93 stars 27 forks source link

Handle pathlib.Path properly #65

Closed sibocw closed 4 years ago

sibocw commented 4 years ago

Since Python 3.4 the pathlib standard library offers an object-oriented representation of paths. pathlib.Path should be handled the same way str paths are, but currently Blob.download and Container.upload_blob would consider them file-like objects as they are not strings.

(I'm adding tests only to test_driver_amazon.py since really it's implemented in base.py).