WKern
Loading...
Searching...
No Matches
ls.c File Reference
#include <fileio/fileio.h>
#include <io/kio.h>
#include <types/nums.h>

Go to the source code of this file.

Functions

void Fat16Ls ()
 List files in the FAT16 root directory.

Function Documentation

◆ Fat16Ls()

void Fat16Ls ( void )

List files in the FAT16 root directory.

Lists files in the FAT16 root directory.

Reads the root directory sectors of the FAT16 filesystem and prints the file names, their starting cluster numbers, and file sizes.

It handles:

  • End of directory detection
  • Skipping deleted entries
  • Decoding little-endian cluster and size fields

Output format per file: File: [filename].[ext] | Cluster: [cluster] | Size: [size in bytes]

Definition at line 37 of file ls.c.