System.IOUtils.TDirectory.SetLastWriteTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetLastWriteTime(const Path: string;  const LastWriteTime: TDateTime); static;

C++

static void __fastcall SetLastWriteTime(const System::UnicodeString Path, const System::TDateTime LastWriteTime);

Properties

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

Description

Changes the last write time of a directory.

Use SetLastWriteTime to change the last write time of a directory. The following table lists the parameters expected by this method.



Name Meaning

Path

Path of the directory for which the last write time is changed.

LastAccessTime

The new last write time that will be applied to the directory.



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

See Also