file_manager: rename "filename" field to "path" in "/server/files/list" request

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-05-09 11:13:22 -04:00 committed by Eric Callahan
parent b2f8413057
commit 316c6b5fa1
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ class FileManager:
if list_format:
flist = []
for fname in sorted(filelist, key=str.lower):
fdict = {'filename': fname}
fdict = {'path': fname}
fdict.update(filelist[fname])
flist.append(fdict)
return flist