Actions7
Overview
This node interacts with WebDAV servers to perform file operations such as creating directories, uploading files, downloading files, moving, copying, and deleting files or folders. The "Create Directory" operation specifically allows users to create a new directory at a specified path on the WebDAV server.
Common scenarios where this node is beneficial include:
- Automating folder structure creation on remote WebDAV storage.
- Organizing files by programmatically creating directories before uploading content.
- Integrating WebDAV-based file management into workflows without manual intervention.
For example, you can use this node to create a new project folder on your WebDAV server each time a new project is initiated in your system.
Properties
| Name | Meaning |
|---|---|
| Path | The path of the directory to create on the WebDAV server. Must start with "/". Spaces and special characters are automatically URL-encoded. Example: /path/to/new/directory |
Output
The output JSON for the "Create Directory" operation includes:
success: A boolean indicating whether the directory was successfully created (true if HTTP status code is 201).statusCode: The HTTP status code returned by the WebDAV server.path: The directory path that was requested to be created.
Example output JSON:
{
"success": true,
"statusCode": 201,
"path": "/path/to/new/directory"
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential configured with the WebDAV server base URL.
- The base URL must include the protocol (
http://orhttps://) and be correctly set in the credentials. - The node uses HTTP methods like MKCOL to communicate with the WebDAV server.
- Proper network access to the WebDAV server is required.
Troubleshooting
- Invalid Base URL: If the base URL in credentials is missing or does not start with
http://orhttps://, the node will throw an error. Ensure the URL is complete and correct. - Absolute URLs in Path: Paths must be server-relative starting with
/. Absolute URLs in the path parameter cause errors. - Connection Errors: Common network errors such as host not found, connection refused, or timeout may occur if the server is unreachable or misconfigured.
- Permission Issues: If the WebDAV server denies directory creation due to permissions, the HTTP status code will reflect failure (not 201). Check user rights on the server.
- Path Encoding: Spaces and special characters in paths are auto-encoded, but malformed input might cause issues. Always provide valid UTF-8 strings.