Sign in Join
FPDoc Onlineexperiment

TShellTreeNode.IsDirectory function

Member of TShellTreeNodepublicIn unit ShellCtrls

Indicates if the tree node is a directory on the local file system.

Declaration

pascal
function IsDirectory: Boolean

Function result

True when the tree node represents a directory on the local file system.

Description

IsDirectory is a Boolean function which indicates if the file system object for the tree node is a directory on the local file system. The return value is True when the file attributes in the internal TSearchRec instance for the tree node includes the faDirectory attribute.

Use HasChildren to determine if the shell tree node has child nodes representing files or sub-directories.

See also

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