MCPcopy Index your code
hub / github.com/commitdev/zero / CreateDirs

Function CreateDirs

pkg/util/fs/fs.go:12–20  ·  view source on GitHub ↗

CreateDirs creates directories from the given directory path arguments.

(dirPaths ...string)

Source from the content-addressed store, hash-verified

10
11// CreateDirs creates directories from the given directory path arguments.
12func CreateDirs(dirPaths ...string) error {
13 for _, path := range dirPaths {
14 if err := os.MkdirAll(path, 0755); err != nil {
15 return err
16 }
17 }
18
19 return nil
20}
21
22// FileExists checks whether the given path exists and belongs to a file.
23func FileExists(path string) (bool, error) {

Callers 2

executeTemplatesFunction · 0.92
copyBinFilesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected