Record TFileInfo

Unit

Declaration

type TFileInfo = record

Description

Information about a single file or directory collected by FindFiles.

Source: files/castlefindfiles.pas (line 28).

Overview

Fields

Public Name: String;
Public AbsoluteName: String;
Public Url: String;
Public Directory: Boolean;
Public Symlink: Boolean;
Public Size: QWord;

Description

Fields

Public Name: String;

Filename, without any directory path.

Source: files/castlefindfiles.pas (line 30).

Public AbsoluteName: String;

Expanded (with absolute path) file name. Only when URL is using "file" protocol. You should prefer to use URL field instead of this, to work with all possible URLs.

Source: files/castlefindfiles.pas (line 35).

Public Url: String;

Absolute URL.

Source: files/castlefindfiles.pas (line 37).

Public Directory: Boolean;

This item has no description.

Source: files/castlefindfiles.pas (line 38).

Public Symlink: Boolean;

Whether this is a symbolic link. Note that this is independent from Directory: symlinks may have Directory=false (when the symlink is to file) or Directory=true (when the symlink is to directory, and thus can be browsed like directory).

Source: files/castlefindfiles.pas (line 45).

Public Size: QWord;

File size in bytes.

Undefined in case of Directory, we do not sum the directory size (all files inside) here, as it is a costly operation for large directories. Use DirectorySize if you want to calculate directory size.

This may be 0 in case of URL pointing to non-local file, e.g. http (though we cannot search in such URLs anyway).

Source: files/castlefindfiles.pas (line 55).


Generated by PasDoc 0.17.0.snapshot.