Actions14
File → Search
AI-generatedOverview
This node interacts with the ownCloud API to perform various file operations, including searching for files and folders by name within a specified directory. It is useful for automating file management tasks in ownCloud, such as locating files or folders based on partial or full names, and can be integrated into workflows that require file retrieval or organization.
Use Case Examples
- Search for files named 'report' in the root directory to quickly locate relevant documents.
- Search within a specific folder '/projects' to find all files related to a project by name.
Properties
| Name | Meaning |
|---|---|
| Search Query | The case-insensitive string to search for in file and folder names. |
| Search Path | The directory path in ownCloud where the search will be performed, defaulting to the root directory '/'. |
Output
JSON
filename- The name of the file or folder found.basename- The base name of the file or folder found.type- The type of the item, e.g., 'directory' or 'file'.path- The full path of the found file or folder.size- The size of the file (if applicable).lastmod- The last modification timestamp of the file or folder.
Dependencies
- Requires an API key credential for ownCloud API authentication to access WebDAV and OCS endpoints.
Troubleshooting
- Common issues include authentication failures due to incorrect or missing API credentials. Ensure the ownCloud API credential is correctly configured.
- Search may return no results if the search query does not match any file or folder names in the specified path. Verify the search query and path are correct.
- Errors related to network connectivity or API endpoint availability may occur; check ownCloud server status and network connection.
Links
- ownCloud API Documentation - Official documentation for ownCloud API endpoints and usage.
- ownCloud Server Documentation - General documentation for ownCloud server setup and features.