MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / NewFileOp

Function NewFileOp

agent/utils/files/file_op.go:88–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func NewFileOp() FileOp {
89 return FileOp{
90 Fs: afero.NewOsFs(),
91 }
92}
93
94func (f FileOp) OpenFile(dst string) (fs.File, error) {
95 return f.Fs.Open(dst)

Callers 5

CompressMethod · 0.85
CompressMethod · 0.85
ReadFileByLineFunction · 0.85
CompressMethod · 0.85
CompressMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected