FileStat:getFileCount

Method

Description

This method returns the count of directory(s) or file(s) contained in the specified directory whose names match the specified regular expression. The regular expression syntax follows the same syntax as specified for the getFileStatus method.

Remarks

The arguments for this method are different for Windows and Unix platforms.

Type

Synchronous, IMPACT_INFO.

Windows Only Arguments

 

Name

Type

Description

Directory

String

Name of the directory to be searched. No entry indicates the current directory. Regular expressions are not allowed for this argument.

File Name

String

Name of the file to query

Unix Only Arguments

 

Name

Type

Description

File Name

String

Absolute path and name of the file to query

Returns

 

Name

Type

Description

File Count

Integer

Number of files that match the specified query. Table is indexed on the File Count