MCPcopy
hub / github.com/docker/compose / runDir

Function runDir

internal/locker/runtime.go:23–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21)
22
23func runDir() (string, error) {
24 run, ok := os.LookupEnv("XDG_RUNTIME_DIR")
25 if ok {
26 return run, nil
27 }
28
29 path, err := osDependentRunDir()
30 if err != nil {
31 return "", err
32 }
33 err = os.MkdirAll(path, 0o700)
34 return path, err
35}

Callers 1

NewPidfileFunction · 0.85

Calls 2

MkdirAllMethod · 0.80
osDependentRunDirFunction · 0.70

Tested by

no test coverage detected