Internal Directory Structures

Every file on the system is stored in a directory. A directory is nothing more than a file itself, except that it is specially structured and marked on the disk so that it has special meaning. A directory is a table that contains information about files (and subdirectories) that it contains, and links to where the file (or subdirectory) data begins on the disk. The paper analogy would be a table of contents to a book, except that directories of course use a hierarchical tree structure and books do not.

Each entry in a directory is 32 bytes in length, and stores the following information:

Every regular directory on the disk has two special entries, that refer to the directory itself and to the parent directory. These are named "." (single dot) and ".." (double dot) respectively. These entries are used for navigation purposes; if you type "chdir .." then DOS will change your current directory to the parent of the one you were in.

Next: Root Directory and Regular Directories