Create Folder
Creates a new folder at the specified path in pCloud.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Client Id - The client identifier returned from the Login node.
- Path - The full path where the folder will be created (e.g., "/Documents/Reports" or "Projects/2024").
How It Works
The Create Folder node creates a new folder at the specified location in pCloud. When executed, the node:
- Validates the Client Id
- Validates the path is not empty
- Normalizes the path by adding a leading "/" if needed
- Retrieves the authenticated pCloud client
- Creates the folder at the specified path
- Returns success when the folder is created
Requirements
- An active pCloud connection (Client Id from Login node)
- Valid path format
- Appropriate permissions in pCloud
- The parent folder must exist (or use nested path creation)
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid Client Id
- Empty path
- Invalid path format
- Folder already exists at the specified path
- Parent folder does not exist
- Insufficient permissions
- Network connectivity issues
Usage Notes
- Paths can be specified with or without a leading "/" (it will be added automatically)
- Use "/" as the path separator
- Parent folders must exist unless pCloud supports nested creation
- Folder names are case-sensitive
- Special characters in folder names may cause issues
- The path "/" refers to the root directory
Path Format Examples
The Path input accepts various formats:
"Documents"- Creates folder at/Documents"/Projects/2024"- Creates folder at/Projects/2024"Backups/Database"- Creates folder at/Backups/Database"/"- Refers to root directory (will fail as root already exists)
Best Practices
- Create a logical folder structure for your automation
- Use date-based folders for time-series data (e.g., "Reports/2024/January")
- Verify parent folders exist before creating subfolders
- Use consistent naming conventions
- Handle errors when folders already exist
- Document your folder structure for maintenance
Example: Create Project Folder
Create a folder for a new project:
Inputs:
- Client Id: (from Login node)
- Path: "/Projects/WebsiteRedesign"
This creates a "WebsiteRedesign" folder inside the "Projects" folder.
Example: Create Date-Based Folder
Create a folder organized by date:
Inputs:
- Client Id: (from Login node)
- Path: "/Backups/2024/January"
This creates a hierarchical structure for organizing backups.
Example: Automated Folder Structure
Create an organized folder structure for automation:
- Login - Authenticate with pCloud
- Create Folder - Path: "/Automation"
- Create Folder - Path: "/Automation/Input"
- Create Folder - Path: "/Automation/Output"
- Create Folder - Path: "/Automation/Archive"
This creates a complete folder structure for file processing automation.
Common Automation Scenarios
Document Organization:
- Create folders by department, project, or category
- Organize files before uploading
- Maintain consistent folder structures across accounts
Automated Archiving:
- Create date-based folders (daily, weekly, monthly)
- Archive old files into organized structures
- Separate current and historical data
Multi-Client Management:
- Create folders for each client or customer
- Organize deliverables by project
- Maintain separate workspaces
Data Processing Pipelines:
- Create input/output/error folders
- Organize files by processing stage
- Separate raw and processed data
Example: Dynamic Folder Creation
Create folders based on current date:
- Get Date - Get current date
- Format Date - Format as "YYYY/MM"
- Create Folder - Path:
/Reports/${formattedDate}
This automatically organizes reports by year and month.
Troubleshooting
Folder Already Exists:
- This is often not an error - the folder is ready to use
- Consider using Continue On Error to proceed
- Check if the folder exists before attempting to create it
Parent Folder Not Found:
- Create parent folders first
- Use a series of Create Folder nodes for nested structures
- Verify the path is correct
Invalid Path:
- Check for special characters
- Ensure proper path separator (/)
- Avoid trailing slashes except for root
Permission Denied:
- Verify your pCloud account has sufficient permissions
- Check if you're trying to create folders in restricted areas
- Ensure the Login was successful