Os sistemas de arquivos do Windows (FAT, FAT32, NTFS) possuem entradas de diretório .
e ..
em cada diretório, que correspondem ao diretório atual e ao diretório pai, respectivamente.
A partir da Especificação do sistema de arquivos Microsoft EFI FAT32 :
When a directory is created, [...] [i]f the directory is not the root directory, you need to create two special entries in the first two 32-byte directory entries of the directory (the first two 32 byte entries in the data region of the cluster you just allocated).
The first directory entry has DIR_Name set to:
“. ”
The second has DIR_Name set to:
“.. ”
These are called the dot and dotdot entries. The DIR_FileSize field on both entries is set to 0, and all of the date and time fields in both of these entries are set to the same values as they were in the directory entry for the directory that you just created. You now set DIR_FstClusLO and DIR_FstClusHI for the dot entry (the first entry) to the same values you put in those fields for the directories directory entry (the cluster number of the cluster that contains the dot and dotdot entries).
Finally, you set DIR_FstClusLO and DIR_FstClusHI for the dotdot entry (the second entry) to the first cluster number of the directory in which you just created the directory (value is 0 if this directory is the root directory even for FAT32 volumes).
Here is the summary for the dot and dotdot entries:
- The dot entry is a directory that points to itself.
- The dotdot entry points to the starting cluster of the parent of this directory (which is 0 if this directories parent is the root directory).
Na verdade, essas entradas de diretório estão presentes em cada diretório. Eles estão implícitos, então pode não haver muito valor em mostrá-los no NERDTree, mas isso é apenas uma escolha de design.