Function fetch

Source
pub fn fetch(
    output_snd: &XvcOutputSender,
    xvc_root: &XvcRoot,
    opts: &BringCLI,
) -> Result<()>
Expand description

Download files in opts.targets from opts.storage to cache.

  • Retrieves the storage record from xvc_root.
  • Expands globs in opts.targets.
  • Gets the corresponding cache path for each file target.
  • Calls storage.receive for each of these targets.