Call correct_case on the directory root, but not each atag.
This commit is contained in:
parent
bb75e8db53
commit
138f376ce7
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,6 @@ def allowed(path):
|
||||||
return path == ROOT_DIRECTORY or path in ROOT_DIRECTORY
|
return path == ROOT_DIRECTORY or path in ROOT_DIRECTORY
|
||||||
|
|
||||||
def atag(path, display_name=None):
|
def atag(path, display_name=None):
|
||||||
path.correct_case()
|
|
||||||
if display_name is None:
|
if display_name is None:
|
||||||
display_name = path.basename
|
display_name = path.basename
|
||||||
|
|
||||||
|
@ -349,6 +348,7 @@ def atag(path, display_name=None):
|
||||||
|
|
||||||
def generate_opendir(path):
|
def generate_opendir(path):
|
||||||
try:
|
try:
|
||||||
|
path.correct_case()
|
||||||
items = path.listdir()
|
items = path.listdir()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
items = []
|
items = []
|
||||||
|
|
Loading…
Reference in a new issue