From 3c8c1c1cb286e2efcb2e046063f4eb617af7f9d4 Mon Sep 17 00:00:00 2001 From: sticilface Date: Fri, 27 Nov 2015 11:14:07 +0000 Subject: [PATCH] Proposed fix for long filenames in SPIFFS as mentioned https://github.com/esp8266/Arduino/issues/1088 --- cores/esp8266/FS.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/esp8266/FS.cpp b/cores/esp8266/FS.cpp index 55bae8f5c5..8241083ab0 100644 --- a/cores/esp8266/FS.cpp +++ b/cores/esp8266/FS.cpp @@ -196,6 +196,7 @@ File FS::open(const char* path, const char* mode) { DEBUGV("FS::open: invalid mode `%s`\r\n", mode); return File(); } + if (strlen(path) > 31) return File(); return File(_impl->open(path, om, am)); }