[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ShellCtrls' (#lcl)

TCustomShellTreeView.GetFilesInDir

Finds all files/directories directly inside a directory

Declaration

Source position: shellctrls.pas line 86

public class procedure TCustomShellTreeView.GetFilesInDir(

  const ABaseDir: string;

  AMask: string;

  AObjectTypes: TObjectTypes;

  AResult: TStrings;

  AFileSortType: TFileSortType = fstNone

);

Arguments

ABaseDir

  

The base directory

AMask

  

A list of masks to utilize to obtain only files which match this mask. The masks should be separated by a semi-comma. For example: "*.exe;*.txt"

AObjectTypes

  

The kinds of objects to add to the list

AResult

  

A TStringList object already created should be provided in this parameter to receive the resulting list of files

AFileSortType

  

Indicates how to sort the items in the list

Description

Helper routine. Finds all files/directories directly inside a directory. Does not recurse inside subdirectories.

AMask may contain multiple file masks separated by ";". Don't add a final ";" after the last mask.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.