Opencell icon

Opencell

Consume Opencell API

Overview

The File Explorer - Move File operation in this n8n node allows you to move a file or directory from one location to another within the Opencell file system via its API. This is useful for automating file management tasks, such as organizing files after processing, archiving completed work, or restructuring directories.

Practical examples:

  • Automatically moving processed data files to an archive folder.
  • Organizing uploaded documents into user-specific directories.
  • Implementing workflows that require dynamic file organization based on business logic.

Properties

Name Type Meaning
Authentication options Selects the authentication method (Basic Authentication or OAuth2) for connecting to Opencell.
Body Content Type hidden Specifies the content type for requests; set internally to "multipart-form-data".
Source File/Directory Path string The full path of the file or directory to be moved.
Destination Path string The target path where the file or directory should be moved.

Output

  • json: The response from the Opencell API after attempting to move the file or directory.
    • Typically, this will include a status message or result object indicating success or failure.
    • If the operation fails and "Continue On Fail" is enabled, the output may contain an error field with the error message.

Dependencies

  • External Service: Requires access to an Opencell instance with the REST API enabled.
  • Authentication: Needs valid credentials for either Basic Authentication or OAuth2, configured in n8n credentials.
  • n8n Configuration: No special environment variables are required beyond standard credential setup.

Troubleshooting

Common Issues:

  • Invalid Paths: If the source or destination paths do not exist or are incorrect, the API will return an error.
  • Permission Denied: Insufficient permissions for the authenticated user can prevent file operations.
  • API Connectivity: Network issues or incorrect Opencell API URLs can cause connection failures.

Error Messages & Resolutions:

  • "Unable to move file or directory": Check that both source and destination paths are correct and accessible.
  • "Authentication failed": Verify your credentials and authentication method.
  • "Host error": Ensure the Opencell server is reachable from your n8n instance.

Links and References

Discussion