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

Method list_lfs_files

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

Source from the content-addressed store, hash-verified

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')
83 return [
84 line.split(' ')[-1] for line in rsp.stdout.strip().splitlines()
85 if line
86 ]
87
88 # ------------------------------------------------------------------
89 # Auth / user config

Callers 2

test_push_allMethod · 0.95

Calls 1

_run_git_commandMethod · 0.95

Tested by 2

test_push_allMethod · 0.76