Clear vector after complete config state (#4194)

* Clear after complete config

* Don't collect . entries

* Log file name and size
This commit is contained in:
Ben Meadors
2024-06-28 09:50:22 -05:00
committed by GitHub
parent ce58a23f9b
commit 0016e747e9
2 changed files with 5 additions and 2 deletions

View File

@@ -124,7 +124,9 @@ std::vector<meshtastic_FileInfo> getFiles(const char *dirname, uint8_t levels)
#else
strcpy(fileInfo.file_name, file.name());
#endif
filenames.push_back(fileInfo);
if (!String(fileInfo.file_name).endsWith(".")) {
filenames.push_back(fileInfo);
}
file.close();
}
file = root.openNextFile();