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

NameTypeDescription
dirPathStringThe target directory path.
filterStringAn expression used to select the files - i.e., file names - of interest.

Returns

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

Cautions

none