ownCloud icon

ownCloud

Interact with ownCloud API (WebDAV and OCS)

File → Copy

AI-generated

Overview

This node interacts with the ownCloud API to perform file operations such as copying files or folders within the ownCloud storage. It is useful for automating file management tasks like duplicating files or folders to a new location within the ownCloud environment. For example, it can be used to copy a document from one directory to another for backup or sharing purposes.

Use Case Examples

  1. Copy a file from '/documents/report.txt' to '/backup/report.txt' within ownCloud.
  2. Duplicate a folder and its contents to a new path for versioning or archival.

Properties

Name Meaning
Path The source file or folder path to copy from. It supports selecting from a list or specifying a path string starting with '/'.
Destination Path The destination path where the file or folder will be copied to. This must be a valid path string starting with '/'.
Options Additional options for the operation, such as whether to overwrite existing files during upload (not directly applicable to copy but available in the node).

Output

JSON

  • success - Indicates if the copy operation was successful (true/false).
  • from - The source path of the copied file or folder.
  • to - The destination path where the file or folder was copied.

Dependencies

  • Requires an API key credential for ownCloud API authentication to access and manipulate files via WebDAV.

Troubleshooting

  • Common issues include invalid source or destination paths, which must start with '/'.
  • Errors may occur if the destination path already exists and overwriting is not allowed or supported for the copy operation.
  • Network or authentication errors can happen if the ownCloud API credentials are incorrect or expired.

Links

Discussion