Explorar el Código

Also skip .files and _files with long filenames

Marius Kintel hace 11 años
padre
commit
e06d820909
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      Marlin/cardreader.cpp

+ 2
- 0
Marlin/cardreader.cpp Ver fichero

@@ -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…
Cancelar
Guardar