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

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

Functions

int rmdir (FILE *disk, superblock_t *sb, char **args)
 Remove an empty directory.

Detailed Description

Implements the rmdir command for the BSFS filesystem.

Provides functionality to remove directories within the BSFS filesystem.

Function Documentation

◆ rmdir()

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

Remove an empty directory.

Usage: rmdir <directory>

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