FileFunctions Class

Summary

Groups a set of functions for dealing with files.
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["FileFunctions"] class Type type-node

Syntax

[FunctionSet("file", "File")]
public class FileFunctions : FunctionSetBase

Attributes

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

Constructors

Name Summary
FileFunctions(Project, PropertyDictionary) Initializes a new instance of the NAnt.Core.Functions.FileFunctions 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 specified file exists.
GetCreationTime(string) DateTime
Returns the creation date and time of the specified file.
GetLastAccessTime(string) DateTime
Returns the date and time the specified file was last accessed.
GetLastWriteTime(string) DateTime
Returns the date and time the specified file was last written to.
GetLength(string) long
Gets the length of the file.
IsAssembly(string) bool
Checks if a given file is an assembly.
UpToDate(string, string) bool
Determines whether targetFile is more or equal up-to-date than srcFile.