Basic Solution File System - BSFS
Loading...
Searching...
No Matches
mkdir.c File Reference

Implements the mkdir command for the BSFS filesystem. More...

Functions

int mkdir (FILE *disk, superblock_t *sb, char **args)
 Create a new directory.

Detailed Description

Implements the mkdir command for the BSFS filesystem.

Provides functionality to create directories within the BSFS filesystem.

Function Documentation

◆ mkdir()

int mkdir ( FILE * disk,
superblock_t * sb,
char ** args )

Create a new directory.

Usage: mkdir <directory>

Parameters
diskOpen filesystem image.
sbLoaded superblock.
argsDirectory name in args[1].
Returns
1 to continue the REPL.