未验证 提交 fa8a1c38 编写于 作者: M M. Betz 提交者: GitHub

fix #4071 (#4072)

SPIFFS File object evaluates as true even if the file could not be opened.
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册