MCPcopy Index your code
hub / github.com/keploy/keploy / makeDirectory

Function makeDirectory

utils/utils.go:768–774  ·  view source on GitHub ↗

makeDirectory creates a directory if not exists with all user access

(path string)

Source from the content-addressed store, hash-verified

766
767// makeDirectory creates a directory if not exists with all user access
768func makeDirectory(path string) error {
769 err := os.MkdirAll(path, 0777)
770 if err != nil {
771 return err
772 }
773 return nil
774}
775
776// SetCoveragePath takes a goCovPath and sets the coverage path accordingly.
777// It returns an error if the path is a file or if the path does not exist.

Callers 1

SetCoveragePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected