Browse Source

Also skip .files and _files with long filenames

Marius Kintel 12 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
     {
90
     {
91
       if (p.name[0] == DIR_NAME_FREE) break;
91
       if (p.name[0] == DIR_NAME_FREE) break;
92
       if (p.name[0] == DIR_NAME_DELETED || p.name[0] == '.'|| p.name[0] == '_') continue;
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
       if ( p.name[0] == '.')
95
       if ( p.name[0] == '.')
94
       {
96
       {
95
         if ( p.name[1] != '.')
97
         if ( p.name[1] != '.')

Loading…
Cancel
Save