storage:google:drive:list
Lists Google Drive files visible to the app's drive.file grant, using a connection resolved from the connections store.
Options
| Name | Type | Description |
|---|---|---|
connection | string | The connection id to use; empty resolves the only google-drive connection |
query | string | A drive search expression, e.g. name contains 'report' |
folder | string | A folder id whose children to list; empty searches across all files visible to the app |
limit | int | How many files to return (default 100) |
Outputs
| Name | Type | Description |
|---|---|---|
count | int | How many files were returned |
files | []File | The matching files |
↳ id | string | The provider's file id |
↳ name | string | The file name |
↳ mime_type | string | The file's mime type |
↳ size | int64 | The file size in bytes |
↳ modified | string | The last modification time in RFC 3339 |
↳ folder | bool | Whether the entry is a folder |
Example
name: List workflow reports in Drive
actions:
- name: reports
component: storage:google:drive:list
vars:
query: name contains 'report'
limit: 10
outputs:
count: "{{ reports.count }}"
files: "{{ reports.files }}"