Function esthri::sync_streaming

source ·
pub async fn sync_streaming<'a>(
    s3: &'a Client,
    source: &'a S3PathParam,
    destination: &'a S3PathParam,
    filters: &'a [GlobFilter],
    opts: SharedSyncOptParams
) -> Result<impl Stream<Item = Result<SyncedFile>> + 'a>
Expand description

Stream Sync from S3 prefixes to local directories (for now)

Arguments

  • s3 - S3 client
  • source - S3 prefix
  • destination - local directory to sync to
  • glob_filter - An (optional) slice of filters that specify whether files should be included or not. These are processed in order, with the first matching filter determining whether the file will be included or excluded. If not supplied, then all files will be synced.