- a sync copies what the connection holds into a dataset or a mediaset, on demand or on a schedule;
- a transform declares the connection as an input and reads it itself, picking the files it wants.
List and get
Files
Listings are recursive and paged. Each entry carriespath (relative to the connection’s root), filename, size, last_modified and is_dir.
glob follows the same rule as a sync’s path_glob: * stays within a directory, ** descends.
Download
In a transform
Bind the connection withConnection("<project>.<slug>"). The function receives a read-only filesystem over the same relay:
Connections are read-only from code: a connection is where data comes from, and a transform writes into its output dataset.