浏览代码

Merge pull request #376 from kintel/skip_longfilenames

Also skip .files and _files with long filenames. I think its better than before. If somebody dislikes it, or wants additional configuration, it can be done in a future step. Thanks, Marius, and nice to have you helping!
Bernhard Kubicek 12 年前
父节点
当前提交
f8876a7958
共有 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] != '.')

正在加载...
取消
保存