Fix file that starts with same name as a folder being perceived as in folder
Solves #1637
This commit is contained in:
parent
102727b122
commit
ccbf71a96a
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.startswith(path)
|
||||
return filepath == path or filepath.startswith(path + "/")
|
||||
|
||||
def file_exists(self, path):
|
||||
path, name = self.sanitize(path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue