Browse Source

Also skip .files and _files with long filenames

Marius Kintel 11 years ago
parent
commit
e06d820909
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/cardreader.cpp

+ 2
- 0
Marlin/cardreader.cpp View File

@@ -90,6 +90,8 @@ void  CardReader::lsDive(const char *prepend,SdFile parent)
90 90
     {
91 91
       if (p.name[0] == DIR_NAME_FREE) break;
92 92
       if (p.name[0] == DIR_NAME_DELETED || p.name[0] == '.'|| p.name[0] == '_') continue;
93
+      if (longFilename[0] != '\0' &&
94
+          (longFilename[0] == '.' || longFilename[0] == '_')) continue;
93 95
       if ( p.name[0] == '.')
94 96
       {
95 97
         if ( p.name[1] != '.')

Loading…
Cancel
Save