From 40d4c7e410beb129652036c370ba919081067e70 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Tue, 8 Feb 2022 13:43:34 +0000 Subject: [PATCH] Fix ESP32 example --- examples/esp32/main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/esp32/main/main.c b/examples/esp32/main/main.c index 2cba9ff4..81d4b27a 100644 --- a/examples/esp32/main/main.c +++ b/examples/esp32/main/main.c @@ -12,7 +12,7 @@ // SPIFFS is flat, so tell Mongoose that the FS root is a directory // This cludge is not required for filesystems with directory support 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; return flags; }