storage:local:synced:list
Detects locally synced Google Drive for Desktop and OneDrive folders and returns their local root paths, so workflows read and write provider files with the plain fs components and zero API auth.
Options
| Name | Type | Description |
|---|---|---|
provider | string | Keep only folders synced by this provider, google-drive-sync or microsoft-onedrive-sync; empty returns all |
Outputs
| Name | Type | Description |
|---|---|---|
count | int | How many synced folders were found |
folders | []SyncedFolder | The detected synced folders |
↳ connection | string | The fs-sync connection id the folder is exposed as |
↳ provider | string | The provider syncing the folder, google-drive-sync or microsoft-onedrive-sync |
↳ account | string | The provider account or label the folder belongs to |
↳ root | string | The local root path of the synced folder |
Example
Reads a synced Drive file with the plain fs components, which is the zero-API-auth path sync folders exist for.
name: Read a file from the synced Drive folder
actions:
- name: sync
component: storage:local:synced:list
vars:
provider: google-drive-sync
- name: notes
component: storage:local:file:read
vars:
path: "{{ sync.folders | first | key:'root' }}/My Drive/notes.txt"
outputs:
content: "{{ notes.content }}"