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

Method DeleteFile

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

Source from the content-addressed store, hash-verified

165}
166
167func (f FileOp) DeleteFile(dst string) error {
168 if IsProtected(dst) {
169 return buserr.New("ErrPathNotDelete")
170 }
171 return f.Fs.Remove(dst)
172}
173
174func (f FileOp) CleanDir(dst string) error {
175 if IsProtected(dst) {

Callers 15

CompressMethod · 0.95
CompressMethod · 0.95
CompressMethod · 0.95
CompressMethod · 0.95
CompressMethod · 0.95
OperateCustomRewriteMethod · 0.95
DeleteMethod · 0.95
BatchDeleteMethod · 0.95
CreateLoadBalanceMethod · 0.95
DeleteLoadBalanceMethod · 0.95
delNginxConfigFunction · 0.95
deleteWebsiteFolderFunction · 0.95

Calls 1

IsProtectedFunction · 0.85

Tested by

no test coverage detected