mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Fix ESP32 example
This commit is contained in:
1 parent
8cd4699dbc
commit
40d4c7e410
1 file changed
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
// SPIFFS is flat, so tell Mongoose that the FS root is a directory
|
// SPIFFS is flat, so tell Mongoose that the FS root is a directory
|
||||||
// This cludge is not required for filesystems with directory support
|
// This cludge is not required for filesystems with directory support
|
||||||
static int my_stat(const char *path, size_t *size, time_t *mtime) {
|
static int my_stat(const char *path, size_t *size, time_t *mtime) {
|
||||||
int flags = mg_fs_posix.stat(path, size, mtime);
|
int flags = mg_fs_posix.st(path, size, mtime);
|
||||||
if (strcmp(path, FS_ROOT) == 0) flags |= MG_FS_DIR;
|
if (strcmp(path, FS_ROOT) == 0) flags |= MG_FS_DIR;
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user