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

Method Lstat

worktree_fs.go:101–106  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

99}
100
101func (sfs *worktreeFilesystem) Lstat(filename string) (os.FileInfo, error) {
102 if err := sfs.validReadPath(filename); err != nil {
103 return nil, fmt.Errorf("lstat: %w", err)
104 }
105 return sfs.Filesystem.Lstat(filename)
106}
107
108func (sfs *worktreeFilesystem) Symlink(target, link string) error {
109 if err := sfs.validPath(link); err != nil {

Callers 11

addIndexFromFileMethod · 0.45
isSymlinkMethod · 0.45
TestCleanMethod · 0.45
TestCleanBareMethod · 0.45
doAddMethod · 0.45
AddGlobMethod · 0.45
copyFileToStorageMethod · 0.45
doUpdateFileToIndexMethod · 0.45
RemoveMethod · 0.45
RemoveGlobMethod · 0.45
MoveMethod · 0.45

Calls 1

validReadPathMethod · 0.95

Tested by 2

TestCleanMethod · 0.36
TestCleanBareMethod · 0.36