[fpc-pascal] fpreaddir
Marco van de Voort
marcov at stack.nl
Thu May 1 17:17:06 CEST 2008
> fpreaddir
> -> http://www.freepascal.org/docs-html/rtl/baseunix/fpreaddir.html
>
> dirent record structure
> -> http://www.freepascal.org/docs-html/rtl/baseunix/dirent.html
>
> How do I know if the readed entry is a subdir?
d_type being
DT_UNKNOWN 0
DT_FIFO 1
DT_CHR 2
DT_DIR 4
DT_BLK 6
DT_REG 8
DT_LNK 10
DT_SOCK 12
DT_WHT 14
But why do you not simply use findfirst/findnext? It's more portable.
More information about the fpc-pascal
mailing list