Fix file_in_path for windows environments

This commit is contained in:
Gina Häußge committed 2017-01-11 13:51:40 +01:00
1 parent 2ab7fa4d3a
commit c0dff1359b
1 file changed
+1 -1
+1 -1
View File
@@ -511,7 +511,7 @@ class LocalFileStorage(StorageInterface):
filepath = self.sanitize_path(filepath)
path = self.sanitize_path(path)
return filepath == path or filepath.startswith(path + "/")
return filepath == path or filepath.startswith(path + os.sep)
def file_exists(self, path):
path, name = self.sanitize(path)