Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 22dfbfe

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

File tree

Expand file treeCollapse file tree

2 files changed

+0
-11
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-11
lines changed

‎libraries/FFat/src/FFat.cpp

Copy file name to clipboardExpand all lines: libraries/FFat/src/FFat.cpp
-9Lines changed: 0 additions & 9 deletions
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()));

‎libraries/FFat/src/FFat.h

Copy file name to clipboardExpand all lines: libraries/FFat/src/FFat.h
-2Lines changed: 0 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.