Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
FIND_FILES action
Function
The action allows to find a file or directory in the defined directory.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
FIND_FILES directory, mask, bRecursive, filesDesc, retCode |
Parameters
directory | in | Existing directory, where to find. TEXT type. | ||||||||||||||||||||||||
mask | in | Name of the file or directory you want to look for. It can contains the characters * and ?. TEXT type. | ||||||||||||||||||||||||
bRecursive | in | BOOLEAN type.
| ||||||||||||||||||||||||
filesDesc | in | Local structure of SD._System_FileInfo type or other structure definition consisting of the same column count and types.
| ||||||||||||||||||||||||
retCode | out | Return code. |
Return code
The value of the parameter retCodeIdent_Int - see the table of error codes.
Description
The action allows you to find the specified file (directory) within the given directory. The action finds and fill the result into the structure filesDes. The structure filesDesc contains a list of files and directories matching the given search condition. If needed, the action resize the structure.
If no file match the given condition (mask), the result structure will consists of 0 rows.
The structure filesDesc is updated only when retCode acquires the value "0" (ERR_NO_ERROR).
If no file match the given condition (mask), the result structure will consists of 0 rows.
The structure filesDesc is updated only when retCode acquires the value "0" (ERR_NO_ERROR).
Example
![](/download/attachments/130678759/find_files.png?version=1&modificationDate=1507883297846&api=v2)
Blok kódu | ||||
---|---|---|---|---|
| ||||
RECORD (SD.ESL_FIND_FILES) _dir INT _retCode BEGIN FIND_FILES "c:\directory", "*", @TRUE, _dir, _retCode END |