SPIFFS File object evaluates as true even if the file could not be opened.
This commit is contained in:
parent
d56267bd8c
commit
fa8a1c38d5
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ public:
|
|||
}
|
||||
|
||||
File f = _fs.open(path, "r");
|
||||
if (!f)
|
||||
if (!f || !f.available())
|
||||
return false;
|
||||
|
||||
if (_cache_header.length() != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue