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

Method ModTime

pkg/schema/blob.go:572–582  ·  view source on GitHub ↗

ModTime returns the "unixMtime" modtime field, if set.

()

Source from the content-addressed store, hash-verified

570
571// ModTime returns the "unixMtime" modtime field, if set.
572func (bb *Builder) ModTime() (t time.Time, ok bool) {
573 s, ok := bb.m["unixMtime"].(string)
574 if !ok {
575 return
576 }
577 t, err := time.Parse(time.RFC3339, s)
578 if err != nil {
579 return
580 }
581 return t, true
582}
583
584// PopulateDirectoryMap sets the type of *Builder to "directory" and sets
585// the "entries" field to the provided staticSet blobref.

Callers 1

uploadNodeRegularFileMethod · 0.95

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected