MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / CreateFile

Method CreateFile

agent/utils/files/file_op.go:130–136  ·  view source on GitHub ↗
(dst string)

Source from the content-addressed store, hash-verified

128}
129
130func (f FileOp) CreateFile(dst string) error {
131 file, err := f.Fs.Create(dst)
132 if err != nil {
133 return err
134 }
135 return file.Close()
136}
137
138func (f FileOp) CreateFileWithMode(dst string, mode fs.FileMode) error {
139 file, err := f.Fs.OpenFile(dst, os.O_CREATE, mode)

Callers 10

UpdateRewriteConfigMethod · 0.95
createIndexFileFunction · 0.95
createProxyFileFunction · 0.95
createWebsiteFolderFunction · 0.95
createOpenBasedirConfigFunction · 0.95
createPemFileFunction · 0.95
handleParamsFunction · 0.95
UpdateAuthBasicMethod · 0.95
UpdatePHPContainerMethod · 0.95
UpdateModuleMethod · 0.95

Calls 2

CreateMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected