System.IOUtils.TDirectory.SetLastAccessTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetLastAccessTime(const Path: string;  const LastAccessTime: TDateTime); static;

C++

static void __fastcall SetLastAccessTime(const System::UnicodeString Path, const System::TDateTime LastAccessTime);

Properties

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

Description

Changes the last access time of a directory.

Use SetLastAccessTime to change the last access 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 access time is changed.

LastAccessTime

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



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

See Also