#include <Directory.h>
Collaboration diagram for Directory:

Public Member Functions | |
| Directory (FAT &fat) | |
| Create a new directory helper object from the root directory of the FAT. | |
| bool | empty () |
| Checks if the directory is empty. | |
| int | chdir (const char *path) |
| Change the current directory by searching down the path. | |
| int | mkdir (const FileName &name) |
| Create a new directory in the current directory. | |
| bool | exists (const FileName &name) const |
| Check if a file or directory exists in the current directory. | |
| int | erase (const FileName &name) |
| Erase a file or directory from the current directory. | |
| const FCB * | get_fcb (const FileName &name) const |
| Get the FCB of a file in the current directory. | |
| void | set_fcb (const FileName &name, const FCB &fcb) |
| Set the FCB for a file in the current directory. | |
| void | list () |
| List the current directory. | |
Stores directory information obtained from disk. The root directory is assumed to be located right after the FAT on disk. A search starts at the root directory and recursively moves down a path. The directory object is used to obtain and set file FCBs, list directory content, create directory entries, erase directory entries, and more.
Definition at line 35 of file Directory.h.
1.3.8