MCPcopy Index your code
hub / github.com/CodisLabs/codis / mkdirFor

Function mkdirFor

pkg/models/fs/fsclient.go:59–65  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

57}
58
59func mkdirFor(file string) error {
60 dir, _ := filepath.Split(file)
61 if dir != "" {
62 return mkdirAll(dir)
63 }
64 return nil
65}
66
67func (c *Client) lockFs() error {
68 if c.lockfd != nil {

Callers 2

lockFsMethod · 0.85
writeFileMethod · 0.85

Calls 1

mkdirAllFunction · 0.85

Tested by

no test coverage detected