#include #include #include #include #include "fs/fs.h" #include "fs/file.h" int remove(const char *path) { int r = unlink(path); if (r==-EISDIR) r = rmdir(path); return r; }