MCPcopy Create free account
hub / github.com/modelscope/modelscope / git_lfs_install

Method git_lfs_install

modelscope/hub/git.py:74–79  ·  view source on GitHub ↗
(self, repo_dir: str)

Source from the content-addressed store, hash-verified

72 return _GitCommand.is_lfs_available()
73
74 def git_lfs_install(self, repo_dir: str) -> bool:
75 try:
76 _GitCommand.lfs_install(Path(repo_dir))
77 return True
78 except Exception:
79 return False
80
81 def list_lfs_files(self, repo_dir: str) -> List[str]:
82 rsp = self._run_git_command('-C', repo_dir, 'lfs', 'ls-files')

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected