Summary
Gets the length of the file.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- FileFunctions
Syntax
[Function("get-length")]
public long GetLength(string file)
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Parameters
Name | Type | Description |
---|---|---|
file | string | filename |
Return Value
Type | Description |
---|---|
long | Length in bytes, of the file named file. |