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

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

Functions

int mv (FILE *disk, superblock_t *sb, char **args)
 Move or rename a file or directory.

Detailed Description

Implements the mv command for the BSFS filesystem.

Moves or renames files and directories within the filesystem.

Function Documentation

◆ mv()

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

Move or rename a file or directory.

Usage: mv <src> <dst>

Parameters
diskOpen filesystem image.
sbLoaded superblock.
argsSource path in args[1], destination path in args[2].
Returns
1 to continue the REPL.