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

Method CreateDirWithMode

agent/utils/files/file_op.go:111–116  ·  view source on GitHub ↗
(dst string, mode fs.FileMode)

Source from the content-addressed store, hash-verified

109}
110
111func (f FileOp) CreateDirWithMode(dst string, mode fs.FileMode) error {
112 if err := f.Fs.MkdirAll(dst, mode); err != nil {
113 return err
114 }
115 return f.ChmodRWithMode(dst, mode, true)
116}
117func (f FileOp) CreateDirWithPath(isDir bool, pathItem string) (string, error) {
118 checkPath := pathItem
119 if !isDir {

Callers 1

CreateMethod · 0.95

Calls 2

ChmodRWithModeMethod · 0.95
MkdirAllMethod · 0.80

Tested by

no test coverage detected