Update code.py

This commit is contained in:
Anne Barela 2023-02-22 17:17:16 -05:00 committed by GitHub
parent 57fdf5951b
commit 478ebcca9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ from adafruit_display_shapes.rect import Rect
def get_files(base):
files = os.listdir(base)
file_names = []
for j, filetext in enumerate(files):
for isdir, filetext in enumerate(files):
if not filetext.startswith("."):
if filetext not in ('boot_out.txt', 'System Volume Information'):
stats = os.stat(base + filetext)
@ -30,7 +30,6 @@ def get_files(base):
file_names.append((filetext, True))
else:
file_names.append((filetext, False))
j = 0
return filenames
def get_touch(screen):