Skip to content

Commit

Permalink
Removing not needed ifdef
Browse files Browse the repository at this point in the history
l0ud spotted that this is not need.

Co-Authored-By: Przemyslaw Romaniak <[email protected]>
  • Loading branch information
unlogisch04 and l0ud committed May 4, 2024
1 parent 6dfc116 commit 5f7ec36
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/FSHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,9 @@ bool ensureDirectory(const char* directory) {
}
}

#ifdef ESP32
auto dir = LittleFS.open(directory);
auto isDirectory = dir.isDirectory();
dir.close();
#else
auto dir = LittleFS.open(directory, "r");
auto isDirectory = dir.isDirectory();
dir.close();
#endif

if (!isDirectory) {
if (!LittleFS.remove(directory)) {
Expand Down

0 comments on commit 5f7ec36

Please sign in to comment.