8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e392f commit 9a9fb2cCopy full SHA for 9a9fb2c
libraries/FS/src/vfs_api.cpp
@@ -184,6 +184,11 @@ bool VFSImpl::rmdir(const char *path)
184
return false;
185
}
186
187
+ if (strcmp(_mountpoint, "/spiffs") == 0) {
188
+ log_e("rmdir is unnecessary in SPIFFS");
189
+ return false;
190
+ }
191
+
192
VFSFileImpl f(this, path, "r");
193
if(!f || !f.isDirectory()) {
194
if(f) {
@@ -200,7 +205,7 @@ bool VFSImpl::rmdir(const char *path)
200
205
201
206
202
207
sprintf(temp,"%s%s", _mountpoint, path);
203
- auto rc = unlink(temp);
208
+ auto rc = ::rmdir(temp);
204
209
free(temp);
210
return rc == 0;
211
0 commit comments