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

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

Functions

int list (FILE *disk, superblock_t *sb, char **args)
 List contents of a directory.

Detailed Description

Implements the list command for the BSFS filesystem.

Lists contents of a directory.

Function Documentation

◆ list()

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

List contents of a directory.

Usage: ls [path] or list [path]

Parameters
diskOpen filesystem image.
sbLoaded superblock.
argsOptional directory path in args[1]; defaults to ".".
Returns
1 to continue the REPL.