scottwernervt / cloudstorage

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

Windows compatibility for LOCAL driver #56

Closed RangelReale closed 4 years ago

RangelReale commented 4 years ago

The LOCAL driver isn't Windows compatible because it uses xattr for attributes, which isn't available in Windows. To simulate this in windows, a JSON file named "..xattr" is created in the same directory as the main file, with the file attributes. Also this file cannot be accessed by the other methods, so it is filtered. This is not a very performant way of doing this, but the LOCAL driver is normally for testing purposes only, so this should be sufficient.

RangelReale commented 4 years ago

I also added tests to ensure the internal file isn't accessible.