DocsWorkflowsComponentsStoragestorage:local:synced:list

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

NameTypeDescription
providerstringKeep only folders synced by this provider, google-drive-sync or microsoft-onedrive-sync; empty returns all

Outputs

NameTypeDescription
countintHow many synced folders were found
folders[]SyncedFolderThe detected synced folders
  ↳ connectionstringThe fs-sync connection id the folder is exposed as
  ↳ providerstringThe provider syncing the folder, google-drive-sync or microsoft-onedrive-sync
  ↳ accountstringThe provider account or label the folder belongs to
  ↳ rootstringThe 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 }}"