mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-02 05:20:59 +02:00
SPIFFS File object evaluates as true even if the file could not be opened.
This commit is contained in:
@ -113,7 +113,7 @@ public:
|
||||
}
|
||||
|
||||
File f = _fs.open(path, "r");
|
||||
if (!f)
|
||||
if (!f || !f.available())
|
||||
return false;
|
||||
|
||||
if (_cache_header.length() != 0)
|
||||
|
Reference in New Issue
Block a user