🧡 Skip to main content🔍 Skip to search

The Ensure Folder Action ensures that the specified folder (or path) is in the desired state before proceeding with the workflow. It creates, clears, or even removes unnecessary files and folders to maintain the intended folder structure.

FolderDetails
Folder The name of the target folder along with its full path.
Make sure that it Desired state of the folder:
  • Exists · ensures that the folder exists by creating it along with all intermediary folders as well.
  • Exists and is empty · ensures the folder's existence by creating it and all intermediary folders if needed. If the folder already exists, this Action ensures that it does not contain any files or folders.
  • Exists and contains no files · ensures the folder exists and that its root is free of files (though files and subfolders within its subfolders are permitted). This Action creates the folder if needed, and if it already exists, it removes any files in it.
  • Does not exist · ensures that the specified folder does not exist. This Action removes the folder along with its contents if necessary.

All operations, such as creating, removing, and clearing, are performed only if necessary. If the specified folder already meets the ensure condition and is in the desired state, this Action does nothing and simply continues with the workflow execution.
BrowseBrowse buttonUse Browse to select a particular file or folder on local disk, network share on LAN (local area network), etc.
Variable WizardVariable Wizard buttonUse dynamic data input—substitute a parameter from a file, web, connected Trigger, other Actions, date and time presets, etc.

Interconnect

  • Dynamic variables & Events of the Ensure Folder. Access the variable containing information about a folder that was created, removed, or simply checked. Additionally, logs detail the intended folder state, actions taken on the folder, and any failures that occur.

Note

  • Automation Workshop supports Unicode file names and a path of up to 32,000 characters.

Need help?

If you have any questions, please do not hesitate to contact our support team.