Actions14
File → Get Properties
AI-generatedOverview
This node interacts with the ownCloud API to perform various file operations such as uploading, downloading, deleting, creating folders, listing directory contents, moving, copying, and retrieving file properties (stat). It is useful for automating file management tasks within ownCloud environments, for example, backing up files, synchronizing data, or managing shared resources.
Use Case Examples
- Uploading a file to a specific path in ownCloud with an option to overwrite existing files.
- Downloading a file from ownCloud and storing it as binary data in the workflow.
- Retrieving properties of a file or folder to check metadata such as size, modification date, and type.
Properties
| Name | Meaning |
|---|---|
| Path | The file or folder path to operate on, which can be selected from a list or specified directly as a string starting with '/'. |
| Options | Additional options for the operation, such as whether to overwrite an existing file during upload. |
Output
Binary
Binary output contains the file data when downloading files, stored under a user-defined binary property name.
JSON
success- Indicates whether the operation was successful (true/false).path- The path of the file or folder involved in the operation.from- Source path for move or copy operations.to- Destination path for move or copy operations.*- For list and stat operations, the output includes detailed file or folder metadata such as filename, type, size, and modification date.
Dependencies
- Requires an ownCloud API credential for authentication to access the ownCloud WebDAV and OCS APIs.
Troubleshooting
- Common errors include missing binary data when uploading files, which requires specifying the correct binary property name.
- Errors related to invalid paths, such as paths not starting with '/', can occur and should be corrected according to the validation rules.
- API request failures may happen due to incorrect credentials or network issues; ensure the ownCloud API credentials are correctly configured and the server is reachable.
Links
- ownCloud API Documentation - Official documentation for ownCloud API endpoints and usage.
- n8n ownCloud Node - n8n documentation and examples for using the ownCloud node.