WebDAV icon

WebDAV

Interact with WebDAV servers for file operations

Overview

This node allows users to interact with WebDAV servers for file operations, specifically here focusing on creating directories. The "Create Directory" operation sends a request to the WebDAV server to create a new directory at a specified path. This is useful in scenarios where automated workflows need to organize files or prepare folder structures remotely before uploading or managing files.

Practical examples include:

  • Automatically creating project folders on a remote WebDAV server when a new project is initiated.
  • Organizing backups by creating dated directories before transferring files.
  • Setting up user-specific directories dynamically in a shared WebDAV environment.

Properties

Name Meaning
Path The server-relative 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 object for the "Create Directory" operation contains:

  • 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 produced by this operation.

Dependencies

  • Requires an API key credential configured with the WebDAV server's base URL and authentication details.
  • The base URL must include the protocol (http:// or https://) and be correctly set in the credentials.
  • The node uses standard WebDAV HTTP methods and XML bodies for communication.

Troubleshooting

  • Invalid Base URL: If the base URL in credentials is missing or does not start with http:// or https://, the node will throw an error. Ensure the URL includes the protocol.
  • Absolute URLs in Path: Paths must be server-relative starting with /. Absolute URLs in the path parameter cause errors.
  • Connection Errors: Common network issues such as host not found, connection refused, or timeout will produce descriptive error messages. Verify server hostname, network connectivity, and firewall settings.
  • Permission Issues: If the WebDAV server denies directory creation, the response status code will indicate failure (not 201). Check user permissions on the server.
  • Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error details in the output.

Links and References

Discussion