MCPcopy
hub / github.com/yusing/godoxy / OpenFile

Method OpenFile

internal/api/v1/file/get.go:83–90  ·  view source on GitHub ↗
(filename string, flag int, perm os.FileMode)

Source from the content-addressed store, hash-verified

81}
82
83func (t FileType) OpenFile(filename string, flag int, perm os.FileMode) (*os.File, error) {
84 root, err := os.OpenRoot(t.RootPath())
85 if err != nil {
86 return nil, err
87 }
88 defer root.Close()
89 return root.OpenFile(filename, flag, perm)
90}

Callers 7

saveMethod · 0.80
openAccessLogFileFunction · 0.80
extractFileFromTarGzFunction · 0.80
SetFunction · 0.80
GetFunction · 0.80

Calls 2

RootPathMethod · 0.95
CloseMethod · 0.65