There are a number of ways to use the list of files found by a FileSet:
The methods of a FileSet can be accessed in both script and via the variable syntax in the fields of actions using the following syntax:
If accessing the FileSet using the variable syntax, the following parameters are also available:
:quote=[double|single]
Specifying the quote type overrides the default quote type as specified in the FileSet Define action. Can be appended to both the File and AllFiles methods
:sep=[crlf|cr|lf|comma|space|tab|colon|semicolon]
Specifying the separator type overrides the default separator character as specified in the FileSet Define action. Can be appended to the AllFiles method.
To retrieve the count of files in the fileset:
Variable Syntax | Script |
---|---|
<br>%MyFileSet.Count%<br> |
<br>MyFileSet.Count<br> |
To retrieve file 10 in the FileSet:
Variable Syntax | Script |
---|---|
<br>%MyFileSet.File10%<br> |
<br>MyFileSet.File10<br> |
To retrieve file 5 in the FileSet overriding the default quoting to use double quotes:
Variable Syntax | Script |
---|---|
<br>%MyFileSet.File5:quote=double%<br> |
<br>MyFileSet.OutputQuoting = qtDouble<br> <br>MyFileSet.File5<br> |
To retrieve file 5 in the FileSet overriding the default separator:
Variable Syntax | Script |
---|---|
<br>%MyFileSet.File5:sep=comma%<br> |
<br>MyFileSet.OutputSeparator = spComma<br> <br>MyFileSet.File5<br> |
To retrieve all files in the FileSet:
Variable Syntax | Script |
---|---|
<br>%MyFileSet.AllFiles%<br> |
<br>MyFileSet.AllFiles<br> |
To retrieve all files in the FileSet overriding the default separator and quote type:
Variable Syntax | Script |
---|---|
<br>%MyFileSet.File5:quote=single:sep=comma%<br> |
<br>MyFileSet.OutputQuoting = qtSingle<br> <br>MyFileSet.OutputSeparator = spComma<br> <br>MyFileSet.AllFiles<br> |