From 6ddf64378762aeafdac8751b2c8082d5202d60c8 Mon Sep 17 00:00:00 2001 From: Sasha Kovar Date: Fri, 2 May 2025 12:40:43 -1000 Subject: [PATCH] Add SPIFFS.exists --- esp32/builtins.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp32/builtins.h b/esp32/builtins.h index 8462dbb..0b963bb 100644 --- a/esp32/builtins.h +++ b/esp32/builtins.h @@ -298,7 +298,8 @@ static cell_t ResizeFile(cell_t fd, cell_t size); XV(SPIFFS, "SPIFFS.end", SPIFFS_END, SPIFFS.end()) \ XV(SPIFFS, "SPIFFS.format", SPIFFS_FORMAT, PUSH SPIFFS.format()) \ XV(SPIFFS, "SPIFFS.totalBytes", SPIFFS_TOTAL_BYTES, PUSH SPIFFS.totalBytes()) \ - XV(SPIFFS, "SPIFFS.usedBytes", SPIFFS_USED_BYTES, PUSH SPIFFS.usedBytes()) + XV(SPIFFS, "SPIFFS.usedBytes", SPIFFS_USED_BYTES, PUSH SPIFFS.usedBytes()) \ + XV(SPIFFS, "SPIFFS.exists", SPIFFS_EXISTS, n0 = SPIFFS.exists(c0) ? -1 : 0) #endif #ifndef ENABLE_FREERTOS_SUPPORT