blob: 9323da1a132837549ddb8a75deda89fbe33daa62 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package fetch
import objectid "lindenii.org/go/furgit/object/id"
// Size returns the object content size at id.
//
// Labels: Life-Parent.
func (r *Fetcher) Size(id objectid.ObjectID) (int64, error) {
size, err := r.store.ReadSize(id)
if err != nil {
return 0, wrapObjectReadError(id, err)
}
return size, nil
}
|