ownCloud icon

ownCloud

Interact with ownCloud API (WebDAV and OCS)

File → Move

AI-generated

Overview

This node interacts with the ownCloud API to perform file operations, specifically moving files or folders from one path to another within the ownCloud storage. It is useful for automating file management tasks such as reorganizing files, relocating data, or managing storage structure programmatically. For example, it can be used to move a file from a user's upload directory to an archive folder automatically.

Use Case Examples

  1. Move a file from '/uploads/file.txt' to '/archive/file.txt' to organize user uploads.
  2. Automate moving project files to a shared folder after completion.

Properties

Name Meaning
Path The source file or folder path to move. It can be selected from a list or specified by path starting with '/'.
Destination Path The target path where the file or folder will be moved to, specified as a string starting with '/'.
Options Additional options for the operation, such as whether to overwrite existing files during upload (not applicable for move).

Output

JSON

  • success - Boolean indicating if the move operation was successful.
  • from - The original source path of the file or folder.
  • to - The destination path where the file or folder was moved.

Dependencies

  • Requires an API key credential for ownCloud API authentication to access WebDAV and OCS endpoints.

Troubleshooting

  • Common issues include invalid source or destination paths, which must start with '/'.
  • Errors may occur if the source file does not exist or if permissions are insufficient to move the file.
  • If the destination path already exists and overwriting is not allowed, the operation may fail.
  • Error messages typically indicate the nature of the failure, such as 'Failed to load files' or permission denied errors. Ensuring correct paths and credentials usually resolves these issues.

Links

Discussion