CE add mkdir command, implement create_dir () syscall
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m1s

This commit is contained in:
2026-03-05 00:38:58 +01:00
parent 0897f08212
commit 35d5bed433
12 changed files with 100 additions and 0 deletions

View File

@@ -259,3 +259,10 @@ int fatfs_create_file (struct vfs_volume* volume, const char* path) {
fl_fclose (fatfs_ctx, file);
return ST_OK;
}
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;
}