Fix file_in_path for windows environments
This commit is contained in:
parent
2ab7fa4d3a
commit
c0dff1359b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue