(ctx context.Context, source fs.Object)
| 99 | } |
| 100 | |
| 101 | func (o *Object) updateData(ctx context.Context, source fs.Object) { |
| 102 | o.Object = source |
| 103 | o.CacheModTime = source.ModTime(ctx).UnixNano() |
| 104 | o.CacheSize = source.Size() |
| 105 | o.CacheStorable = source.Storable() |
| 106 | o.CacheTs = time.Now() |
| 107 | o.cacheHashesMu.Lock() |
| 108 | o.CacheHashes = make(map[hash.Type]string) |
| 109 | o.cacheHashesMu.Unlock() |
| 110 | } |
| 111 | |
| 112 | // Fs returns its FS info |
| 113 | func (o *Object) Fs() fs.Info { |