mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-14 09:02:14 +00:00
fix PortduinoFS integration for Firmware.
This commit is contained in:
parent
e435453363
commit
cb6846ebc6
@ -14,7 +14,7 @@ void listDir(const char * dirname, uint8_t levels)
|
|||||||
|
|
||||||
File file = root.openNextFile();
|
File file = root.openNextFile();
|
||||||
while(file){
|
while(file){
|
||||||
if(file.isDirectory()){
|
if(file.isDirectory() && !String(file.name()).endsWith(".")) {
|
||||||
if(levels){
|
if(levels){
|
||||||
listDir(file.name(), levels -1);
|
listDir(file.name(), levels -1);
|
||||||
}
|
}
|
||||||
|
@ -286,7 +286,7 @@ void htmlDeleteDir(const char * dirname)
|
|||||||
|
|
||||||
File file = root.openNextFile();
|
File file = root.openNextFile();
|
||||||
while(file){
|
while(file){
|
||||||
if(file.isDirectory()){
|
if(file.isDirectory() && !String(file.name()).endsWith(".")) {
|
||||||
htmlDeleteDir(file.name());
|
htmlDeleteDir(file.name());
|
||||||
file.close();
|
file.close();
|
||||||
} else {
|
} else {
|
||||||
@ -313,7 +313,7 @@ void htmlListDir( HTTPResponse *res, const char * dirname, uint8_t levels)
|
|||||||
|
|
||||||
File file = root.openNextFile();
|
File file = root.openNextFile();
|
||||||
while(file){
|
while(file){
|
||||||
if(file.isDirectory()){
|
if(file.isDirectory() && !String(file.name()).endsWith(".")) {
|
||||||
if(levels){
|
if(levels){
|
||||||
htmlListDir(res, file.name(), levels -1);
|
htmlListDir(res, file.name(), levels -1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user