Skip to content

Commit ce8c7e9

Browse files
committed
fix(littlefs): Use VFSImpl::exists() to avoid false error log
1 parent 4098c53 commit ce8c7e9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: libraries/LittleFS/src/LittleFS.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,10 @@ class LittleFSImpl : public VFSImpl {
3333
public:
3434
LittleFSImpl();
3535
virtual ~LittleFSImpl() {}
36-
virtual bool exists(const char *path);
3736
};
3837

3938
LittleFSImpl::LittleFSImpl() {}
4039

41-
bool LittleFSImpl::exists(const char *path) {
42-
File f = open(path, "r", false);
43-
return (f == true);
44-
}
45-
4640
LittleFSFS::LittleFSFS() : FS(FSImplPtr(new LittleFSImpl())), partitionLabel_(NULL) {}
4741

4842
LittleFSFS::~LittleFSFS() {

0 commit comments

Comments
 (0)