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

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

Functions

int cd (FILE *disk, superblock_t *sb, char **args)
 Change current working directory.

Detailed Description

Implements the cd command for the BSFS filesystem.

Changes the current working directory.

Function Documentation

◆ cd()

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

Change current working directory.

Usage: cd <directory>

Parameters
diskOpen filesystem image.
sbLoaded superblock.
argsExpects directory path in args[1].
Returns
1 to continue the REPL.