MCPcopy Index your code
hub / github.com/perkeep/perkeep / PopulateDirectoryMap

Method PopulateDirectoryMap

pkg/schema/blob.go:586–590  ·  view source on GitHub ↗

PopulateDirectoryMap sets the type of *Builder to "directory" and sets the "entries" field to the provided staticSet blobref.

(staticSetRef blob.Ref)

Source from the content-addressed store, hash-verified

584// PopulateDirectoryMap sets the type of *Builder to "directory" and sets
585// the "entries" field to the provided staticSet blobref.
586func (bb *Builder) PopulateDirectoryMap(staticSetRef blob.Ref) *Builder {
587 bb.m["camliType"] = string(TypeDirectory)
588 bb.m["entries"] = staticSetRef.String()
589 return bb
590}
591
592// PartsSize returns the number of bytes represented by the "parts" field.
593func (bb *Builder) PartsSize() int64 {

Callers 4

UploadDirMethod · 0.80
testReadDirFunction · 0.80
RunCommandMethod · 0.80
uploadNodeMethod · 0.80

Calls 1

StringMethod · 0.45

Tested by 1

testReadDirFunction · 0.64