MCPcopy
hub / github.com/ha/doozerd / checkPath

Function checkPath

src/pkg/store/store.go:120–125  ·  view source on GitHub ↗
(k string)

Source from the content-addressed store, hash-verified

118}
119
120func checkPath(k string) os.Error {
121 if !pathRe.MatchString(k) {
122 return ErrBadPath
123 }
124 return nil
125}
126
127// Returns a mutation that can be applied to a `Store`. The mutation will set
128// the contents of the file at `path` to `body` iff `rev` is greater than

Callers 7

StatMethod · 0.85
setpMethod · 0.85
EncodeSetFunction · 0.85
EncodeDelFunction · 0.85
decodeFunction · 0.85
TestCheckBadPathsFunction · 0.85
TestCheckGoodPathsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestCheckBadPathsFunction · 0.68
TestCheckGoodPathsFunction · 0.68