File find (payload:file-find)

File find (payload:file-find)

Find files in given path with or without filter, result will be stored in a string variable.

Usage:

<payload:file-find name=""! path=""! filter=""?/>

! - mandatory, ? - optional

Example

Example

Behaviour

Example

Behaviour

<payload:file-find name="myFileFind" path="C:\folder\target\test-classes\assets\" filter="Test.*.txt" />

Returns a string containing all files in the directory with the filter ‘Test*.txt’

<payload:file-find name="myFileFind" path="C:\folder\target\test-classes\assets\" />

Returns a string containing all files in the directory.







Related content