From e06d820909e5512327dd125e22c7f32e4010dc49 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 31 Jan 2013 12:07:14 -0500 Subject: [PATCH] Also skip .files and _files with long filenames --- Marlin/cardreader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Marlin/cardreader.cpp b/Marlin/cardreader.cpp index 9711208ef..5d9494a4c 100644 --- a/Marlin/cardreader.cpp +++ b/Marlin/cardreader.cpp @@ -90,6 +90,8 @@ void CardReader::lsDive(const char *prepend,SdFile parent) { if (p.name[0] == DIR_NAME_FREE) break; if (p.name[0] == DIR_NAME_DELETED || p.name[0] == '.'|| p.name[0] == '_') continue; + if (longFilename[0] != '\0' && + (longFilename[0] == '.' || longFilename[0] == '_')) continue; if ( p.name[0] == '.') { if ( p.name[1] != '.')