Create Folder
Creates a folder at the specified absolute path on the system.
This element ensures that a folder exists before performing further actions in your flow, such as moving, copying, or generating files.
It will not overwrite existing folders. If the folder already exists, the flow continues without error.
Path
The absolute path to the folder you want to create. You can use:
- Absolute paths (e.g.,
C:\Media\Movies\NewFolderor/media/movies/NewFolder) - Flow variables to dynamically generate paths (e.g.,
{temp}\{MyVariable})
Important: Relative paths are not supported. Make sure the path is valid and accessible by the FileFlows service. Paths containing invalid characters or pointing to restricted locations may cause the node to fail.
Behavior
- If the folder already exists, a log message
"Folder already exists."is written, and the flow continues. - If the folder does not exist, it will be created. A log message
"Folder created: [path]"confirms the action. - If the folder cannot be created (due to permissions, invalid path, etc.), the node will fail, and an error message is logged.
Outputs
- Folder Created – Triggered if the folder was successfully created or already exists.
Example
Create a folder for temporary files using a dynamic path:
Path: D:\Media\Processed\{file.Name}
This will create a folder named after the current file inside D:\Media\Processed. For example, if the file being processed is Movie1, the folder created will be:
D:\Media\Processed\Movie1
Notes
- The FileFlows service must have write permissions for the specified path.
- Paths are automatically trimmed of extra spaces, but invalid characters will still cause failures.
- Safe to run multiple times; it will not fail if the folder already exists.