From e71626d80da820fe5508902bf00c9fc116e6ae8e Mon Sep 17 00:00:00 2001 From: David Konsumer Date: Sat, 21 Mar 2026 18:53:48 -0700 Subject: [PATCH] #293 - hide dotfiles --- include/globals.h | 4 +- src/main.cpp | 5 ++- src/sd_functions.cpp | 20 +++++---- src/settings.cpp | 105 +++++++++++++++++++++++++++++-------------- src/settings.h | 8 ++-- 5 files changed, 94 insertions(+), 48 deletions(-) diff --git a/include/globals.h b/include/globals.h index 1fed95dd..5a66530d 100644 --- a/include/globals.h +++ b/include/globals.h @@ -207,7 +207,9 @@ extern JsonDocument settings; extern String fileToCopy; -extern bool onlyBins; +extern bool onlyBins; + +extern bool noDotFiles; extern int rotation; diff --git a/src/main.cpp b/src/main.cpp index a9d68660..50744cc5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -94,8 +94,9 @@ int prog_handler; // 0 - Flash, 1 - SPIFFS int currentIndex; int rotation = ROTATION; bool sdcardMounted; -bool onlyBins; -bool returnToMenu; +bool onlyBins; +bool noDotFiles; +bool returnToMenu; bool update; bool askSpiffs; diff --git a/src/sd_functions.cpp b/src/sd_functions.cpp index a6744bd1..e9325c2b 100644 --- a/src/sd_functions.cpp +++ b/src/sd_functions.cpp @@ -291,15 +291,17 @@ void readFs(String &folder, std::vector