@@ -300,14 +300,13 @@ type Fs struct {
300300
301301// Object describes a b2 object
302302type Object struct {
303- fs * Fs // what this object is part of
304- remote string // The remote path
305- id string // b2 id of the file
306- modTime time.Time // The modified time of the object if known
307- sha1 string // SHA-1 hash if known
308- size int64 // Size of the object
309- mimeType string // Content-Type of the object
310- meta map [string ]string // The object metadata if known - may be nil - with lower case keys
303+ fs * Fs // what this object is part of
304+ remote string // The remote path
305+ id string // b2 id of the file
306+ modTime time.Time // The modified time of the object if known
307+ sha1 string // SHA-1 hash if known
308+ size int64 // Size of the object
309+ mimeType string // Content-Type of the object
311310}
312311
313312// ------------------------------------------------------------
@@ -1605,9 +1604,6 @@ func (o *Object) decodeMetaDataRaw(ID, SHA1 string, Size int64, UploadTimestamp
16051604 if err != nil {
16061605 return err
16071606 }
1608- // For now, just set "mtime" in metadata
1609- o .meta = make (map [string ]string , 1 )
1610- o .meta ["mtime" ] = o .modTime .Format (time .RFC3339Nano )
16111607 return nil
16121608}
16131609
@@ -1887,13 +1883,6 @@ func (o *Object) getOrHead(ctx context.Context, method string, options []fs.Open
18871883 Info : Info ,
18881884 }
18891885
1890- // Embryonic metadata support - just mtime
1891- o .meta = make (map [string ]string , 1 )
1892- modTime , err := parseTimeStringHelper (info .Info [timeKey ])
1893- if err == nil {
1894- o .meta ["mtime" ] = modTime .Format (time .RFC3339Nano )
1895- }
1896-
18971886 // When reading files from B2 via cloudflare using
18981887 // --b2-download-url cloudflare strips the Content-Length
18991888 // headers (presumably so it can inject stuff) so use the old
0 commit comments