File exist Version 10 (Python)
Action group: FIle system
Description
This action is intended to check if the file is present in the folder.
Action icon
Parameters and settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Path to folder | The path to the folder in which you want to search. | Robin.FolderPath | C:\doc\img | Yes |
File name | The name of the file with the extension you want to find. You can use masks with special characters to search: "?" - 1 character or no character, "*" - any number of characters. | Robin.String | Log.txt | Yes |
Recursively | If the value is True, the search will be performed in subfolders, otherwise - only in the specified folder. | Robin.Boolean | true | No |
Timeout, ms | The time given to check if a file is present in the folder. It is set in milliseconds. | Robin.Numeric | 10000 | No |
Results | ||||
Result | A boolean variable whose value is True if the file exists, otherwise it is False. | Robin.Boolean | true |
Special conditions of use
None.
Example of use
Task
Check the existence of the file in the folder.
Solution
Use the "File exist" action.
Implementation
- Move the "File exist" action to the workspace.
- Set the parameters of the "File exist" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The file exists.