Overview
This template prompts the user an OPTIONAL folder name (also known as a "directory") and a REQUIRED file name, and logs a success message if it exist, and errors if the file is missing from the folder. If no folder is provided, the current directory is used by default.
Variables
|
Name |
Reference |
Type |
Required |
Default |
Options |
Description |
|---|---|---|---|---|---|---|
|
Workflows Folder Name |
FOLDER_PATH |
Alphanumeric |
❌ |
If left blank, will look in the home directory. Note: the default value is handled on the code end.
|
None |
Relative path to the folder where the file should be located.
|
|
Workflows File Name |
FILE_NAME |
Alphanumeric |
✅ |
|
None |
Name of the file to verify within the specified folder path. |
YAML
source:
template: Workflows Helper - Check If File Exists
inputs:
FOLDER_PATH:
FILE_NAME:
type: TEMPLATE
guardrails:
retry_count: 1
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- 104
- 105
- 106
- 199