System.IOUtils.TFile.SetCreationTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetCreationTime(const Path: string;
const CreationTime: TDateTime); inline; static;

C++

static void __fastcall SetCreationTime(const System::UnicodeString Path, const System::TDateTime CreationTime);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TFile

Description

Changes the creation time of a file.

Use SetCreationTime to change the creation time of a file. The following table lists the parameters expected by this method:

Name Meaning

Path

Path of the file for which the creation time is changed.

CreationTime

The new creation time that will be applied to the file.


On POSIX and Mac, SetCreationTime will only update the last accessed time, because a Creation Time for a file system entry is not defined.

Note: SetCreationTime raises an exception if the given path is invalid or the file does not exist.

See Also