DirectoryFunctions Class

Summary

Groups a set of functions for dealing with directories.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Base Types
graph BT Type-->Base0["FunctionSetBase"] click Base0 "/api/NAnt.Core/FunctionSetBase" Base0-->Base1["Object"] Type["DirectoryFunctions"] class Type type-node

Syntax

[FunctionSet("directory", "Directory")]
public class DirectoryFunctions : FunctionSetBase

Attributes

Type Description
FunctionSetAttribute Indicates that class should be treated as a set of functions.

Constructors

Name Summary
DirectoryFunctions(Project, PropertyDictionary) Initializes a new instance of the NAnt.Core.Functions.DirectoryFunctions class.

Properties

Name Value Summary
Project Project
Gets or sets the NAnt.Core.FunctionSetBase.Project that this functionset will reference.
Inherited from FunctionSetBase

Methods

Name Value Summary
Exists(string) bool
Determines whether the given path refers to an existing directory on disk.
GetCreationTime(string) DateTime
Returns the creation date and time of the specified directory.
GetCurrentDirectory() string
Gets the current working directory.
static
GetDirectoryRoot(string) string
Returns the volume information, root information, or both for the specified path.
GetLastAccessTime(string) DateTime
Returns the date and time the specified directory was last accessed.
GetLastWriteTime(string) DateTime
Returns the date and time the specified directory was last written to.
GetName(string) string
Retrieves the directory name of the specified path.
GetParentDirectory(string) string
Retrieves the parent directory of the specified path.