Skip to main content

If folder exists

Sophie avatar
Written by Sophie
Updated this week

Definition and Usage

This command checks if a specified folder exists in the file system. It allows you to create conditional workflows based on the existence or non-existence of folders, enabling your RPA process to make decisions accordingly.


Parameter Values

Input parameters

Parameter Name

Description

Possible Values

Required

Options / Notes

Select folder

Enter or select a folder

Text string representing folder path

Yes

You can manually type the path or use the folder selection dialog

If folder

Check the state of the folder

Exists, Does not exist

Yes

Determines which condition to check for

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

The folder path parameter supports variable insertion, indicated by the {x} symbol. You can use variables that contain file paths or directories that were previously defined in your workflow. When using variables, ensure that the resulting path is valid and properly formatted according to your operating system requirements.


Notes

  • The command only checks for folder existence and does not verify permissions or whether the folder is accessible.

  • For network paths, ensure that proper network credentials are available.

  • If using relative paths, they will be evaluated relative to the current working directory of the RPA process.

  • This command is often used as a condition before performing file operations to prevent errors when working with folders.

Did this answer your question?