Skip to content

Commit 22dfbfe

Browse files
committed
fix(ffat): Use VFSImpl::exists() to avoid false error log
1 parent d837e84 commit 22dfbfe

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

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

-9
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,4 @@ size_t F_Fat::freeBytes() {
152152
return free_sect * sect_size;
153153
}
154154

155-
bool F_Fat::exists(const char *path) {
156-
File f = open(path, "r", false);
157-
return (f == true) && !f.isDirectory();
158-
}
159-
160-
bool F_Fat::exists(const String &path) {
161-
return exists(path.c_str());
162-
}
163-
164155
F_Fat FFat = F_Fat(FSImplPtr(new VFSImpl()));

Diff for: libraries/FFat/src/FFat.h

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ class F_Fat : public FS {
3232
size_t usedBytes();
3333
size_t freeBytes();
3434
void end();
35-
bool exists(const char *path);
36-
bool exists(const String &path);
3735

3836
private:
3937
wl_handle_t _wl_handle = WL_INVALID_HANDLE;

0 commit comments

Comments
 (0)