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

Method _get

dvc/fs/dvc.py:690–709  ·  view source on GitHub ↗
(
        self,
        from_info: Union[AnyFSPath, list[AnyFSPath]],
        to_info: Union[AnyFSPath, list[AnyFSPath]],
        callback: "Callback" = DEFAULT_CALLBACK,
        recursive: bool = False,
        batch_size: Optional[int] = None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

688 return self.fs.getcwd()
689
690 def _get(
691 self,
692 from_info: Union[AnyFSPath, list[AnyFSPath]],
693 to_info: Union[AnyFSPath, list[AnyFSPath]],
694 callback: "Callback" = DEFAULT_CALLBACK,
695 recursive: bool = False,
696 batch_size: Optional[int] = None,
697 **kwargs,
698 ) -> list[tuple[str, str, Optional[dict]]]:
699 # FileSystem.get is non-recursive by default if arguments are lists
700 # otherwise, it's recursive.
701 recursive = not (isinstance(from_info, list) and isinstance(to_info, list))
702 return self.fs._get(
703 from_info,
704 to_info,
705 callback=callback,
706 recursive=recursive,
707 batch_size=batch_size,
708 **kwargs,
709 )
710
711 def get(
712 self,

Callers 2

getMethod · 0.95
downloadFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected