Am Donnerstag, 1. Mai 2008 17:17 schrieb Marco van de Voort: > 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.
The result of d_type is always 0 even if the entry is a directory. Your question is not easy to answer. In one way you are right, but I like to program as close to the os as possible. Does findfirst/findnext also support these things like '*.pas' and file attributes? _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal