MCPcopy Create free account
hub / github.com/MG-RAST/Shock / Mkdir

Method Mkdir

shock-server/node/fs.go:367–377  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365}
366
367func (node *Node) Mkdir() (err error) {
368 err = os.MkdirAll(node.Path(), 0777)
369 if err != nil {
370 return
371 }
372 err = os.MkdirAll(node.IndexPath(), 0777)
373 if err != nil {
374 return
375 }
376 return
377}

Callers 4

SaveMethod · 0.95
CreateNodeUploadFunction · 0.80
CreateNodesFromArchiveFunction · 0.80
FilesFromArchiveFunction · 0.80

Calls 2

PathMethod · 0.95
IndexPathMethod · 0.95

Tested by

no test coverage detected