Actions15
Overview
This node integrates with Baidu Netdisk (Baidu Wangpan) API to retrieve various types of file information stored in a user's cloud storage. Specifically, the "获取图片列表" (Get Image List) operation under the "获取文件信息" (Get File Information) resource fetches a list of images from a specified directory in the user's Baidu Netdisk account.
Common scenarios where this node is useful include:
- Automating the retrieval of image files for backup or processing workflows.
- Building media management systems that sync or display images stored on Baidu Netdisk.
- Filtering and listing images based on directory structure and other criteria.
Practical example:
- A user wants to get the latest 100 images from their "/Photos" folder without recursion to display them in a gallery.
- Another use case could be recursively fetching all images from nested folders for batch processing or migration.
Properties
Name | Meaning |
---|---|
目录名称 (parent_path) | The directory path from which to retrieve the image list. Default is root directory "/" |
查询数目 (num) | Number of images to query, with a maximum of 1000. Default is 100 |
是否递归 (recursion) | Whether to recursively search subdirectories within the specified directory. Boolean value |
文件排序 (desc) | Whether to sort the files in descending order. Boolean value |
Output
The output is an array of JSON objects representing the image files retrieved from the specified directory. Each object contains metadata about an image file such as its name, path, size, and other relevant attributes formatted by the helper function formatFileMessage
.
The node does not output binary data directly; it only provides metadata information about the images.
Dependencies
- Requires an API key credential for Baidu Netdisk API authentication.
- Uses internal Baidu API endpoints to perform GET requests for file listings.
- Relies on n8n's HTTP request capabilities and helper methods for constructing execution metadata.
- No additional external services beyond Baidu Netdisk are required.
Troubleshooting
Empty or no results returned:
Ensure the目录名称
(directory path) exists and contains image files. Also verify if recursion is needed to find images in subfolders.API errors or authentication failures:
Confirm that the provided API key credential is valid and has sufficient permissions to access the user's Baidu Netdisk.Invalid parameter values:
Check that查询数目
(num) is between 0 and 1000, and that boolean parameters are correctly set.Rate limiting or timeout issues:
Baidu API may throttle requests; consider adding delays or reducing query sizes if encountering rate limits.
Links and References
- Baidu Netdisk API Documentation (in Chinese)
- Baidu Netdisk official site: https://pan.baidu.com/