Browse Source

Hide hidden files and folders

Scott Lahteine 8 years ago
parent
commit
4cd73e183d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/cardreader.cpp

+ 1
- 1
Marlin/cardreader.cpp View File

@@ -113,7 +113,7 @@ void CardReader::lsDive(const char *prepend, SdFile parent, const char * const m
113 113
       if (pn0 == DIR_NAME_DELETED || pn0 == '.') continue;
114 114
       if (longFilename[0] == '.') continue;
115 115
 
116
-      if (!DIR_IS_FILE_OR_SUBDIR(&p)) continue;
116
+      if (!DIR_IS_FILE_OR_SUBDIR(&p) || (p.attributes & DIR_ATT_HIDDEN)) continue;
117 117
 
118 118
       filenameIsDir = DIR_IS_SUBDIR(&p);
119 119
 

Loading…
Cancel
Save