Skip to content

SeekDir

Seek to position in directory

Declaration

Source position: unix.pp line 130

  procedure SeekDir(p: pDir; loc: clong);

Description

SeekDir sets the directory pointer to the loc-th entry in the directory structure pointed to by p.

For an example, see #rtl.baseunix.fpOpenDir .

Errors

Extended error information is returned by the FpGetErrno function:

See also

Name Description
#rtl.baseunix.fpCloseDir Close directory file descriptor
#rtl.baseunix.fpOpenDir Open a directory for reading
#rtl.baseunix.fpReadDir Read entry from directory
TellDir Return current location in a directory