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

Method HasFile

shock-server/node/helper.go:14–19  ·  view source on GitHub ↗

has

()

Source from the content-addressed store, hash-verified

12
13// has
14func (node *Node) HasFile() bool {
15 if node.File.Size == 0 && len(node.File.Checksum) == 0 {
16 return false
17 }
18 return true
19}
20
21func (node *Node) HasFileLock() bool {
22 node.File.Locked = locker.FileLockMgr.Get(node.Id)

Callers 8

HasIndexMethod · 0.95
UpdateMethod · 0.95
streamDownloadFunction · 0.80
CreateMethod · 0.80
ReadMethod · 0.80
ReadManyMethod · 0.80
IndexTypedRequestFunction · 0.80
addVirtualPartsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected