Browse Source

Hide hidden files and folders

pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
4cd73e183d
  1. 2
      Marlin/cardreader.cpp

2
Marlin/cardreader.cpp

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

Loading…
Cancel
Save