… | |
… | |
245 | |
245 | |
246 | Then entires will be sorted into likely directories (everything |
246 | Then entires will be sorted into likely directories (everything |
247 | without a non-initial dot) and likely non-directories (everything |
247 | without a non-initial dot) and likely non-directories (everything |
248 | else). Then every entry + "/." will be "stat"'ed, likely directories |
248 | else). Then every entry + "/." will be "stat"'ed, likely directories |
249 | first. This is often faster because filesystems might detect the |
249 | first. This is often faster because filesystems might detect the |
250 | type of the entry without reading the inode data (e.g. ext2s |
250 | type of the entry without reading the inode data (e.g. ext2fs |
251 | filetype feature). If that succeeds, it assumes that the entry is a |
251 | filetype feature). If that succeeds, it assumes that the entry is a |
252 | directory or a symlink to directory (which will be checked |
252 | directory or a symlink to directory (which will be checked |
253 | seperately). |
253 | seperately). |
254 | |
254 | |
255 | If the known number of directories has been reached, the rest of the |
255 | If the known number of directories has been reached, the rest of the |