Skip to main content

Create Folder

A Create Folder node creates folders at the paths you configure, so the folders exist before the files that belong in them are written. Use it to build dated folders ahead of a partner's daily deliveries.

Create Folder accepts file items or data items and creates every configured folder for each item it receives. With a Scheduled trigger that has no folder path, the run has one item and the node creates each folder once. A folder that already exists is skipped, so a run can repeat without error and without creating a duplicate folder.

Settings

The node takes one or more destination paths, each of which is a folder to create. A path can be absolute or relative, beginning with ./ or ../, and it accepts the date and time tokens and TransformScript templates that every destination path accepts. /%Y/%m/%d/ creates a folder for today's date, %B/Sales %d creates folders like June/Sales 13, and %A/%H creates folders like Friday/14 for hourly collection. Slashes between tokens create nested folders, and parent folders that do not exist are created as well.

What the Next Node Receives

Create Folder passes on one file item for each folder it created, referring to the new folder by its path.

Errors

A path that cannot be created fails that item. Error Handling rules on the node determine what happens to a failed item.

Create Folder vs. Settings That Create Folders

Two settings create folders without an Automation. Automatically Create New User Folders creates a folder for each new user under the folder it is set on, and Automatically Create Folders Upon Upload is a site-wide FTP setting that creates the missing parent folders when a file is uploaded by FTP or SFTP. Use a Create Folder node when the folders follow a schedule or a naming pattern, or when creating them is one node in a longer workflow.