We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a094e80 + 478ebcc commit be3fc76Copy full SHA for be3fc76
PyPortal_Floppy_with_Display/code.py
@@ -21,15 +21,15 @@
21
def get_files(base):
22
files = os.listdir(base)
23
file_names = []
24
- for file in enumerate(files):
25
- if not file.startswith("."):
26
- if file not in ('boot_out.txt', 'System Volume Information'):
27
- stats = os.stat(base + file)
+ 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)
28
isdir = stats[0] & 0x4000
29
if isdir:
30
- file_names.append((file, True))
+ file_names.append((filetext, True))
31
else:
32
- file_names.append((file, False))
+ file_names.append((filetext, False))
33
return filenames
34
35
def get_touch(screen):
0 commit comments