List files and folders in a Dropbox directory.
type: "io.kestra.plugin.dropbox.files.List"Examples
List all files and folders in a specific Dropbox directory.
id: dropbox_list_files
namespace: company.team
tasks:
- id: list_files_from_dropbox
type: io.kestra.plugin.dropbox.files.List
accessToken: "{{ secrets.DROPBOX_ACCESS_TOKEN }}"
from: "/My Kestra Files/Inputs"
recursive: true
fetchType: FETCH
Properties
accessToken *Requiredstring
Dropbox access token.
fetchType string
FETCHSTOREFETCHFETCH_ONENONEHow to fetch the data.
FETCH_ONE: Returns a single row. FETCH: Returns all rows in memory. STORE: Returns all rows in a file stored in Kestra's internal storage.
from Non-dynamicobject
The path to the directory to list.
Can be a direct path as a string, or a Kestra internal storage URI of a file containing the path.
limit integerstring
2000The maximum number of files to return.
recursive booleanstring
falseWhether to list files recursively in all sub-folders.
Outputs
row DropboxFile
The first file or folder found.
Only populated if fetchType is FETCH_ONE.
size integer
0The number of files and folders found.
uri string
uriThe URI of the file in Kestra's internal storage.
Only populated if fetchType is STORE.
Metrics
files.count counter
The number of files and folders found.
Definitions
io.kestra.plugin.dropbox.models.DropboxFile
clientModified string
date-timeThe last time the file was modified on Dropbox.
id string
The unique ID of the file or folder.
name string
The file or folder name.
path string
The lower-case version of the path for display.
size integer
The file size in bytes.
Null for folders.
type string
The type of the entry.
Can be 'file' or 'folder'.