CE add rm command, implement remove () syscall
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m51s

This commit is contained in:
2026-03-05 01:17:13 +01:00
parent 35d5bed433
commit a5f5dbf21f
12 changed files with 106 additions and 7 deletions

View File

@@ -264,5 +264,12 @@ int fatfs_create_dir (struct vfs_volume* volume, const char* path) {
struct fatfs_ctx* fatfs_ctx = volume->udata;
int r = fl_createdirectory (fatfs_ctx, path);
return r == 0 ? ST_OK : ST_CREATE_DIR_ERROR;
return r == 0 ? ST_OK : -ST_CREATE_DIR_ERROR;
}
int fatfs_remove (struct vfs_volume* volume, const char* path) {
struct fatfs_ctx* fatfs_ctx = volume->udata;
int r = fl_remove (fatfs_ctx, path);
return r == 0 ? ST_OK : -ST_REMOVE_ERROR;
}