From 4cd73e183d87e3a41f850ec5e5843a4c3fc5e60f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 26 Nov 2016 06:26:28 -0600 Subject: [PATCH] Hide hidden files and folders --- Marlin/cardreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/cardreader.cpp b/Marlin/cardreader.cpp index 5f004d2f71..e79200c2cb 100644 --- a/Marlin/cardreader.cpp +++ b/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);