Skip to content

Commit b6daf51

Browse files
committed
Readd exists() standard API
1 parent f025588 commit b6daf51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WiFiStorage.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ class WiFiStorageClass
88
static bool begin();
99

1010
static WiFiStorageFile open(const char *filename);
11+
12+
static bool exists(const char *filename) {
13+
size_t len;
14+
return (WiFiDrv::existsFile(filename, strlen(filename), &len) > 0);
15+
}
1116
static bool exists(const char *filename, size_t* len) {
1217
return (WiFiDrv::existsFile(filename, strlen(filename), len) > 0);
1318
}

0 commit comments

Comments
 (0)