System.SysUtils.FileGetDateTimeInfo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FileGetDateTimeInfo(const FileName: string;
out DateTime: TDateTimeInfoRec; FollowLink: Boolean = True): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall FileGetDateTimeInfo(const System::UnicodeString FileName, /* out */ TDateTimeInfoRec &DateTime, bool FollowLink = true);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

FileGetDateTimeInfo returns the time stamp of the specified file.

The FileGetDateTimeInfo method returns the time stamp (parameter DateTime) of the file specified by the FileName parameter, and supports all valid NTFS date and time stamps. A Boolean value is returned indicating whether the specified file exists. If the specified file is a symbolic link, the function is performed on the target file. If the FollowLink is False, then the date and time of the symbolic link is returned.

See Also