| Description | Hierarchy | Fields | Methods | Properties |
type TFileList = class(TReferenceCounted)
Provides a list of files and folders.
File lists usually contain a list of all files in a given folder, but can also contain a complete directory structure.
![]() |
function AddItem(const FullPath: StringType; Size: LongWord; IsDirectory: Boolean; ID: LongWord=0): LongWord; inline; |
![]() |
function FindFile(const FileName: StringType; IsFolder: Boolean=False): LongInt; inline; |
![]() |
function GetFileName(Index: LongWord): StringType; inline; |
![]() |
function GetFileSize(Index: LongWord): LongWord; inline; |
![]() |
function GetFullFileName(Index: LongWord): StringType; inline; |
![]() |
function GetID(Index: LongWord): LongWord; inline; |
![]() |
function IsDirectory(Index: LongWord): Boolean; inline; |
![]() |
procedure Sort; inline; |
![]() |
property Count: LongWord read GetFileCount; |
![]() |
property Path: StringType read GetPath; |
![]() |
function AddItem(const FullPath: StringType; Size: LongWord; IsDirectory: Boolean; ID: LongWord=0): LongWord; inline; |
|
Add as a file or folder to the list. Parameters
| |
![]() |
function FindFile(const FileName: StringType; IsFolder: Boolean=False): LongInt; inline; |
|
Searches for a file or folder in the list. Parameters
| |
![]() |
function GetFileName(Index: LongWord): StringType; inline; |
|
Gets the name of a file in the list, based on an index. Parameters
ReturnsThe file name, '' on error. | |
![]() |
function GetFileSize(Index: LongWord): LongWord; inline; |
|
Gets the size of a file in the list, based on an index. Parameters
ReturnsThe file size in bytes. | |
![]() |
function GetFullFileName(Index: LongWord): StringType; inline; |
|
Gets the full name of a file in the list, including the path, based on an index. Parameters
ReturnsThe file name, '' on error. | |
![]() |
function GetID(Index: LongWord): LongWord; inline; |
|
Returns the ID of a file in the file list, based on an index. | |
![]() |
function IsDirectory(Index: LongWord): Boolean; inline; |
|
Returns whether an entry is a directory. | |
![]() |
procedure Sort; inline; |
|
Sorts the file list. | |
![]() |
property Count: LongWord read GetFileCount; |
|
Amount of files and directories in the file list. | |
![]() |
property Path: StringType read GetPath; |
|
The base | |