Summary
Determines the number of files within a FileSet
.
Syntax
[Function("get-file-count")]
public int GetFileCount(string fileset)
Examples
Define a fileset and check the number of files in it.
<fileset id="test.fileset">
<include name="**/*.cs">
</fileset>
<echo message="FileSet contains ${fileset::get-file-count('test.fileset')} files." />
Attributes
Type |
Description |
Function |
|
Parameters
Name |
Type |
Description |
fileset |
string |
The id of the FileSet to scan. |
Return Value
Type |
Description |
int |
The number of files included in the FileSet |