Unit 'Dos' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#rtl]

SearchRec

File Search Results record.

Declaration

Source position: dos.pp line 41

type SearchRec = packed record

  SearchPos: TOff;

  

Current search position.

  SearchNum: LongInt;

  

Current search number.

  DirPtr: Pointer;

  

Pointer to directory.

  SearchType: Byte;

  

Type of search.

  SearchAttr: Byte;

  

Attributes specified at findfirst.

  Mode: Word;

  

File mode for Unix systems.

  Fill: array [1..1] of Byte;

  

Padding bytes.

  Attr: Byte;

  

Attributes of the file.

  Time: LongInt;

  

Timestamp of the file.

  Size: LongInt;

  

Size of the file.

  Reserved: Word;

  

Reserved for future use.

  Name: string;

  

Name for the file.

  SearchSpec: string;

  

Wildcard specs specified at findfirst.

  NamePos: Word;

  

Name position.

end;

Description

SearchRec is filled by the FindFirst call and can be used in subsequent FindNext calls to search for files. The structure of this record depends on the platform. Only the following fields are present on all platforms:

Attr
File attributes.
Time
File modification time.
Size
File size
Name
File name (name part only, no path)
Mode
File access mode (Linux only)

Documentation generated on: Dec 04 2024