Verify Folder Exists
Last updated
Last updated
Verify Folder Exists action in the Avo Assure is found under the @Generic Element is used to check if a folder exists at the specified location and store the result in an output variable.
Input: <folder_path>;<folder_name>
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
Scenario:
Check for Backup Folder
Before backing up important project files on user systems, verify the existence of the backup folder at C:\New Folder. If it doesn't exist, create it. This ensures readiness for backup, preventing file loss.
Input: Provide the input values as below:
C:\;New Folder
Expected Result: It should verify whether the “New Folder” exists in the given location.
Output: The Verify Folder Exists action confirms that the folder exists in the C:\ drive and save the result in the {result} output variable as “True”. If folder does not exist then it shows the “False”, this output can be used for display.