mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 18:59:56 +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();
|
||||
while(file){
|
||||
if(file.isDirectory()){
|
||||
if(file.isDirectory() && !String(file.name()).endsWith(".")) {
|
||||
if(levels){
|
||||
listDir(file.name(), levels -1);
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ void htmlDeleteDir(const char * dirname)
|
||||
|
||||
File file = root.openNextFile();
|
||||
while(file){
|
||||
if(file.isDirectory()){
|
||||
if(file.isDirectory() && !String(file.name()).endsWith(".")) {
|
||||
htmlDeleteDir(file.name());
|
||||
file.close();
|
||||
} else {
|
||||
@ -301,7 +301,7 @@ void htmlDeleteDir(const char * dirname)
|
||||
root.close();
|
||||
}
|
||||
|
||||
void htmlListDir( HTTPResponse *res, const char * dirname, uint8_t levels)
|
||||
void htmlListDir(HTTPResponse *res, const char * dirname, uint8_t levels)
|
||||
{
|
||||
File root = FSCom.open(dirname);
|
||||
if(!root){
|
||||
@ -313,7 +313,7 @@ void htmlListDir( HTTPResponse *res, const char * dirname, uint8_t levels)
|
||||
|
||||
File file = root.openNextFile();
|
||||
while(file){
|
||||
if(file.isDirectory()){
|
||||
if(file.isDirectory() && !String(file.name()).endsWith(".")) {
|
||||
if(levels){
|
||||
htmlListDir(res, file.name(), levels -1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user