Peter Vreman ?????:
If need performance and only need to have the filename you can use fpgetdents
or the deprecated
fpreaddir. If you need all file information like size and modified timestamp
then better use the
portable findfirst/findnext.
*Thank you, Peter!
* Can you. please, help me to understand Dir structure, i.e
type Dir = record
dd_fd: Integer;
File descriptor. Do not use.
dd_loc: LongInt;
Location in directory listing
dd_size: Integer;
File size
dd_buf: pDirent
<http://freepascal.org/docs-html/rtl/baseunix/pdirent.html>;
Pointer to Dir <http://freepascal.org/docs-html/rtl/baseunix/dir.html>
records
dd_nextoff: cardinal;
?
dd_max: Integer;
?
dd_lock: pointer;
?
end;
Who can give an information about the fields of this structure?
*Best regards, Alexey.*