MCPcopy
hub / github.com/go-git/go-git / Stat

Method Stat

worktree_fs.go:73–78  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

71}
72
73func (sfs *worktreeFilesystem) Stat(filename string) (os.FileInfo, error) {
74 if err := sfs.validReadPath(filename); err != nil {
75 return nil, fmt.Errorf("stat: %w", err)
76 }
77 return sfs.Filesystem.Stat(filename)
78}
79
80func (sfs *worktreeFilesystem) Remove(filename string) error {
81 if err := sfs.validPath(filename); err != nil {

Callers

nothing calls this directly

Calls 2

validReadPathMethod · 0.95
StatMethod · 0.65

Tested by

no test coverage detected