Skip to main content

sync_file_variants

Function sync_file_variants 

Source
pub async fn sync_file_variants(
    app: &App,
    tn_id: TnId,
    remote_id_tag: &str,
    file_id: &str,
    variants: Option<&[&str]>,
    auth: bool,
) -> ClResult<SyncResult>
Expand description

Sync file variants from a remote instance

§Arguments

  • app - Application state
  • tn_id - Tenant ID
  • remote_id_tag - Remote instance id_tag to fetch from
  • file_id - The file ID to sync
  • variants - Optional list of specific variants to sync (None = all up to max setting)
  • auth - Whether to use authenticated requests (true for direct-visibility files, false for public)

§Returns

Ok(SyncResult) with details of what was synced