- TIBCO BusinessEvents®
- Standard
- File

# File.listFiles()

## Signature

`String[] listFiles (String dirPath, String filter)`

## Domain

ACTION

## Description

Returns an array of files from the target directory that match the specified filter/pattern.

## Parameters

Name | Type | Description
--- | --- | ---
`dirPath` | `String` | The target directory path.
`filter` | `String` | An expression used to select the files - i.e., file names - of interest.

## Returns

Type | Description
--- | ---
`String[]` | Returns an array of files from the target directory that match the specified filter/pattern.

## Cautions

none