fho.folderExists
Purpose
This actiontype verifies if a folder exists
Use Cases
- Verify if a folder exists or has been successfully created
Fields
Parameter | Description | Type | Mandatory | Encrypted |
---|---|---|---|---|
path | Path where the folder is located | string | N | N |
folder | Folder to verify | string | Y | N |
connection | Connection where the folder is located | string | N | N |
- Currently on ssh type remote connections will work
- if the parameter is empty, or defined as
localhost
then the process will be executed locally by the frameworkâs user - if the connection is located remotely, then a ssh connection will be established
- if the connection parameter
allowLocalhostExecution
is set toN
then ssh execution will be forced
- if the parameter is empty, or defined as
- If the folder already exists, no action will be taken
Example 1
- number: 1
type: "fho.folderExists"
name: "Action1"
description: "Verify folder myFolder on myPath"
component: ""
condition: ""
iteration: ""
errorExpected: "N"
errorStop: "N"
parameters:
- name: "path"
value : "/myPath"
- name: "folder"
value : "myFolder"
Example 2
- number: 1
type: "fho.folderExists"
name: "Action2"
description: "Verify folder myFolder on myPath on a different host"
component: ""
condition: ""
iteration: ""
errorExpected: "N"
errorStop: "N"
parameters:
- name: "path"
value : "/myPath"
- name: "folder"
value : "myFolder"
- name: "connection"
value : "host.linux.1"