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