Summary
Groups a set of functions for dealing with files.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Base Types
-
- Object
- FunctionSetBase
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 |
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 |
bool |
Determines whether the specified file exists.
|
GetCreationTime |
DateTime |
Returns the creation date and time of the specified file.
|
GetLastAccessTime |
DateTime |
Returns the date and time the specified file was last accessed.
|
GetLastWriteTime |
DateTime |
Returns the date and time the specified file was last written to.
|
GetLength |
long |
Gets the length of the file.
|
IsAssembly |
bool |
Checks if a given file is an assembly.
|
UpToDate |
bool |
Determines whether targetFile is more or equal
up-to-date than srcFile.
|