Call correct_case on the directory root, but not each atag.

master
Ethan Dalool 2020-10-26 22:58:01 -07:00
parent bb75e8db53
commit 138f376ce7
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,6 @@ def allowed(path):
return path == ROOT_DIRECTORY or path in ROOT_DIRECTORY
def atag(path, display_name=None):
path.correct_case()
if display_name is None:
display_name = path.basename
@ -349,6 +348,7 @@ def atag(path, display_name=None):
def generate_opendir(path):
try:
path.correct_case()
items = path.listdir()
except FileNotFoundError:
items = []