DirectoryFunctions.

GetLastAccessTime(string) Method

Summary

Returns the date and time the specified directory was last accessed.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
DirectoryFunctions

Syntax

[Function("get-last-access-time")]
public DateTime GetLastAccessTime(string path)

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
path string The directory for which to obtain access date and time information.

Return Value

Type Description
DateTime The date and time the specified directory was last accessed.