ソースを参照

Also skip .files and _files with long filenames

Marius Kintel 11年前
コミット
e06d820909
1個のファイルの変更2行の追加0行の削除
  1. 2
    0
      Marlin/cardreader.cpp

+ 2
- 0
Marlin/cardreader.cpp ファイルの表示

@@ -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] != '.')

読み込み中…
キャンセル
保存