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

Function createClashDir

agent/app/service/recycle_bin.go:220–228  ·  view source on GitHub ↗
(clashDir string)

Source from the content-addressed store, hash-verified

218}
219
220func createClashDir(clashDir string) error {
221 op := files.NewFileOp()
222 if !op.Stat(clashDir) {
223 if err := op.CreateDir(clashDir, constant.DirPerm); err != nil {
224 return err
225 }
226 }
227 return nil
228}
229
230func ensureTrashDirs(clashRoot string) (string, string, error) {
231 filesDir := path.Join(clashRoot, recycleBinFilesSubdir)

Callers 1

getClashDirFunction · 0.85

Calls 2

StatMethod · 0.95
CreateDirMethod · 0.95

Tested by

no test coverage detected