CE add rm command, implement remove () syscall
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m51s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m51s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user