MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / stagingPattern

Function stagingPattern

internal/testtmp/testtmp.go:122–124  ·  view source on GitHub ↗

stagingPattern is where mkdirOwned builds a directory before it holds the lock. It does not start with prefix, so no sweep can match it.

(prefix string)

Source from the content-addressed store, hash-verified

120// stagingPattern is where mkdirOwned builds a directory before it holds the
121// lock. It does not start with prefix, so no sweep can match it.
122func stagingPattern(prefix string) string {
123 return fmt.Sprintf(".%sstaging-%d-*", prefix, os.Getpid())
124}

Callers 2

mkdirOwnedFunction · 0.85

Calls

no outgoing calls