|
Basic Solution File System - BSFS
|
Implements the list command for the BSFS filesystem. More...
Functions | |
| int | list (FILE *disk, superblock_t *sb, char **args) |
| List contents of a directory. | |
Implements the list command for the BSFS filesystem.
Lists contents of a directory.
| int list | ( | FILE * | disk, |
| superblock_t * | sb, | ||
| char ** | args ) |
List contents of a directory.
Usage: ls [path] or list [path]
| disk | Open filesystem image. |
| sb | Loaded superblock. |
| args | Optional directory path in args[1]; defaults to ".". |