MCPcopy
hub / github.com/treeverse/dvc / get_file

Method get_file

dvc/fs/dvc.py:585–591  ·  view source on GitHub ↗
(arg: tuple[FileSystem, tuple[str, str, Optional[dict]]])

Source from the content-addressed store, hash-verified

583 os.makedirs(d, exist_ok=True)
584
585 def get_file(arg: tuple[FileSystem, tuple[str, str, Optional[dict]]]):
586 fs, (src, dest, info) = arg
587 kw = kwargs
588 if isinstance(fs, DataFileSystem):
589 kw = kw | {"info": info}
590 with callback.branched(src, dest) as child:
591 fs.get_file(src, dest, callback=child, **kw)
592
593 if batch_size == 1:
594 ctx: AbstractContextManager = nullcontext()

Callers 3

_getMethod · 0.95
_copy_differenceMethod · 0.80
test_filesystemMethod · 0.80

Calls 5

_from_keyMethod · 0.95
_get_subrepo_infoMethod · 0.95
_get_dvc_pathFunction · 0.85
branchedMethod · 0.45

Tested by 1

test_filesystemMethod · 0.64