> 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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to