FTPConnection.FindFiles

Syntax:

FindFiles(<Path>, <Mask>, <SearchInSubdirectories>)

Parameters:

<Path> (required)

Type: String.
Path to the search directory. The directory can be on a local network or an ftp-server. With these schemas, you must use a forward slash '/' and not a back slash '\'.
The instruction of a full name of a file is supposed (path + name).

<Mask> (optional)

Type: String.
Mask (wildcard) for file selection. The mask string can include an asterisk "*" replacing any number of characters, or "?" (question mark) replacing any single character.
If the parameter is set, the first parameter is perceived by system as a way to the catalogue in which it is required to find the files, satisfying to a mask of a choice.

<SearchInSubdirectories> (optional)

Type: Boolean.
True - searching through directories nested in the <Path> parameter.
The parameter is ignored, if the <Mask> parameter is not specified, because it is supposed that one file is being searched.
Default value: False.

Returned value:

Type: Array.

Description:

Searches file-objects of type FTPFile.

Availability:

Thin client, server, thick client, external connection.

    

1C:Enterprise Developer's Community