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

PropertyDescriptionTypeFilling exampleMandatory 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 "Check file existence" action. 

Implementation

  1. Move the "Check file existence" action to the workspace.

  2. Set the parameters of the "Check file existence" action. 
  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The file exists. 

  • Нет меток