|
@@ -91,10 +91,10 @@ void CardReader::lsDive(const char *prepend, SdFile parent, const char * const m
|
91
|
91
|
{
|
92
|
92
|
char pn0 = p.name[0];
|
93
|
93
|
if (pn0 == DIR_NAME_FREE) break;
|
94
|
|
- if (pn0 == DIR_NAME_DELETED || pn0 == '.'|| pn0 == '_') continue;
|
95
|
|
- if (longFilename[0] != '\0' &&
|
96
|
|
- (longFilename[0] == '.' || longFilename[0] == '_')) continue;
|
97
|
|
-
|
|
94
|
+ if (pn0 == DIR_NAME_DELETED || pn0 == '.' || pn0 == '_') continue;
|
|
95
|
+ char lf0 = longFilename[0];
|
|
96
|
+ if (lf0 == '.' || lf0 == '_') continue;
|
|
97
|
+
|
98
|
98
|
if (!DIR_IS_FILE_OR_SUBDIR(&p)) continue;
|
99
|
99
|
filenameIsDir=DIR_IS_SUBDIR(&p);
|
100
|
100
|
|