ryan-roemer / django-cloud-browser

Django application browser for cloud datastores (Rackspace, AWS, etc.).
http://ryan-roemer.github.com/django-cloud-browser/
MIT License
81 stars 27 forks source link

Fix filesystem backend on Windows #31

Closed c-w closed 5 years ago

c-w commented 5 years ago

Currently there are some issues with the filesystem backend on Windows due to the difference between SEP = "/" used as a URL separator and a path separator which leads to non-top-level folders and files not being addressable as shown in the screenshots below.

Screenshot showing bad object name for file

Screenshot showing bad object name for directory

This pull request fixes the issues by ensuring that the app-side always sees paths separated by SEP and the OS always sees paths separated by the platform's path separator.