Unverified Commit fa8a1c38 authored by M. Betz's avatar M. Betz Committed by GitHub

fix #4071 (#4072)

SPIFFS File object evaluates as true even if the file could not be opened.
parent d56267bd
......@@ -113,7 +113,7 @@ public:
}
File f = _fs.open(path, "r");
if (!f)
if (!f || !f.available())
return false;
if (_cache_header.length() != 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment