MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / CreateNestedDirectory

Function CreateNestedDirectory

pkg/utils/file.go:98–104  ·  view source on GitHub ↗

CreateNestedDirectory create nested directory

(path string)

Source from the content-addressed store, hash-verified

96
97// CreateNestedDirectory create nested directory
98func CreateNestedDirectory(path string) error {
99 err := os.MkdirAll(path, 0700)
100 if err != nil {
101 log.Errorf("can't create folder, %s", err)
102 }
103 return err
104}
105
106// CreateNestedFile create nested file
107func CreateNestedFile(path string) (*os.File, error) {

Callers 3

InitHostKeyFunction · 0.92
SymlinkOrCopyFileFunction · 0.85
CreateNestedFileFunction · 0.85

Calls 1

MkdirAllMethod · 0.45

Tested by

no test coverage detected