Skip to content
Snippets Groups Projects
Commit f8876a79 authored by Bernhard Kubicek's avatar Bernhard Kubicek
Browse files

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!
parents 18fcc367 e06d8209
Branches
Tags
No related merge requests found
...@@ -90,6 +90,8 @@ void CardReader::lsDive(const char *prepend,SdFile parent) ...@@ -90,6 +90,8 @@ void CardReader::lsDive(const char *prepend,SdFile parent)
{ {
if (p.name[0] == DIR_NAME_FREE) break; if (p.name[0] == DIR_NAME_FREE) break;
if (p.name[0] == DIR_NAME_DELETED || p.name[0] == '.'|| p.name[0] == '_') continue; if (p.name[0] == DIR_NAME_DELETED || p.name[0] == '.'|| p.name[0] == '_') continue;
if (longFilename[0] != '\0' &&
(longFilename[0] == '.' || longFilename[0] == '_')) continue;
if ( p.name[0] == '.') if ( p.name[0] == '.')
{ {
if ( p.name[1] != '.') if ( p.name[1] != '.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment