Update code.py

This commit is contained in:
Anne Barela 2024-07-16 16:15:40 -04:00 committed by GitHub
parent 86f66dd251
commit 02b3dc8391
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ storage.mount(vfs, "/sd")
def print_directory(path, tabs=0):
for file in os.listdir(path):
if file == "?":
if file == "?":
continue # Issue noted in Learn
stats = os.stat(path + "/" + file)
filesize = stats[6]