Record TFileInfo

Hierarchy
Methods
Properties

Unit

Declaration

type TFileInfo = record

Description

Information about a single file or directory collected by FindFiles.

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.

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.

Public Url: String;

Absolute URL.

Public Directory: Boolean;

This item has no description.

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).

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).


Generated by PasDoc 0.16.0-snapshot.