Skip to content

Commit 7301d6b

Browse files
committed
parent folder
1 parent 2dc0a75 commit 7301d6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gurgleapps_webserver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def blink_element(element, pin, duration=0.27):
309309
def list_files_and_folders(self, path):
310310
entries = uos.ilistdir(path)
311311
files_and_folders = []
312-
if path != self.doc_root:
312+
# print("list_files_and_folders: "+path)
313+
# print("list_files_and_folders: "+self.doc_root)
314+
if path != self.doc_root and path != self.doc_root + '/':
313315
files_and_folders.append({"name": "..", "type": "directory"})
314316
for entry in entries:
315317
name = entry[0]

0 commit comments

Comments
 (0)