MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / LastModified

Method LastModified

internal/caches/reader_file.go:129–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129func (this *FileReader) LastModified() int64 {
130 stat, err := this.fp.Stat()
131 if err != nil {
132 return 0
133 }
134 return stat.ModTime().Unix()
135}
136
137func (this *FileReader) HeaderSize() int64 {
138 return int64(this.headerSize)

Callers 1

CloseMethod · 0.95

Calls 2

UnixMethod · 0.80
StatMethod · 0.65

Tested by

no test coverage detected