EasyUse/Logicgenerated
Is File Exist(isFileExist)
The Is File Exist node checks whether a file exists for the path details you provide and returns a boolean result.
is File Exist
boolean
file_path
STRING
file_name
STRING
file_extension
STRING
Easy Use
Description
The Is File Exist node checks whether a file exists for the path details you provide and returns a boolean result. It is a logic helper commonly used to conditionally run or skip workflow steps depending on whether a particular file is available.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
file_path | STRING | "" | The directory or folder path where the file should be located. |
file_name | STRING | "" | The base name of the file, without the directory path. |
file_extension | STRING | "" | The file extension to check for, such as png, txt, or safetensors. |
All three inputs are required. If any of them are left empty, the node will not be checking a meaningful file location.
Outputs
| Type | Description |
|---|---|
| BOOLEAN | True if the file exists at the specified path, False otherwise. |
Usage Notes
- This node is intended for branching logic in workflows, such as loading a file only if it exists or choosing between different processing paths based on file availability.
- Make sure
file_pathuses the correct path format for your operating system. - Provide the full file-name components explicitly instead of relying on the default empty values.
Comments
Sign in with GitHub to join the discussion.