fs Implement del command

This commit is contained in:
2025-10-15 20:11:07 +02:00
parent e917e81e78
commit 7936eb92f6
2 changed files with 18 additions and 1 deletions

17
user/fs/del.c Normal file
View File

@ -0,0 +1,17 @@
#include <stdint.h>
#include <stddef.h>
#include <ulib.h>
void fs_del(void) {
if (argslen() < 2) {
uprintf("fs: Not enough arguments\n");
return;
}
char *path = *(args()+1);
int32_t r = fs_delete(path);
if (r != E_OK) {
uprintf("fs: could not delete %s\n", path);
}
}