Sign in Join
FPDoc Onlineexperiment

TFileItem class

In unit ShellCtrls

Provides information about a file or directory on the local file system for use in file sort comparison routines.

Declaration

pascal
TFileItem = class(TObject)

Inheritance

  1. TFileItem
  2. TObject

Description

TFileItem is a utility class used to represent a file or directory. It contains BasePath with the path to the directory where the item is located on the local file system, and FileInfo with the TSearchRec values for the item.

TFileItem is the type used to represent the items passed as arguments to a TFileItemCompareEvent handler routine. TFileItem instances are created and used in the implementation of file listing and sort routines as well.

See also

Properties

BasePathpublicPath to the directory where the file item is stored on the local file system.
FileInfopublicTSearchRec instance with information about the file or directory in the item.

Methods

CreatepublicConstructor for the class instance.
FileNamepublicReturns the fully-qualified path and file name for the file item.

Fields

isFolderpublicTrue when the item represents a folder on the local file system.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.