Skip to content

Commit

Permalink
fshelper: fixed ESP8266 regression caused by abstracting FS access S…
Browse files Browse the repository at this point in the history
  • Loading branch information
unlogisch04 committed May 1, 2024
1 parent e09ca3c commit 6dfc116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FSHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ bool ensureDirectory(const char* directory) {
auto isDirectory = dir.isDirectory();
dir.close();
#else
auto dir = LittleFS.openDir(directory);
auto dir = LittleFS.open(directory, "r");
auto isDirectory = dir.isDirectory();
dir.close();
#endif

if (!isDirectory) {
Expand Down

0 comments on commit 6dfc116

Please sign in to comment.