ModTime returns the "unixMtime" modtime field, if set.
()
| 570 | |
| 571 | // ModTime returns the "unixMtime" modtime field, if set. |
| 572 | func (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. |
no test coverage detected