MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / createParentCollection

Method createParentCollection

pkg/gowebdav/requests.go:211–218  ·  view source on GitHub ↗
(itemPath string)

Source from the content-addressed store, hash-verified

209}
210
211func (c *Client) createParentCollection(itemPath string) (err error) {
212 parentPath := path.Dir(itemPath)
213 if parentPath == "." || parentPath == "/" {
214 return nil
215 }
216
217 return c.MkdirAll(parentPath, 0755)
218}

Callers 3

copymoveMethod · 0.95
WriteMethod · 0.95
WriteStreamMethod · 0.95

Calls 1

MkdirAllMethod · 0.95

Tested by

no test coverage detected