// ModTime returns the modification time of the object
//
// It attempts to read the objects mtime and if that isn't present the
// LastModified returned in the http headers
ModTime returns the modification time of the object

It attempts to read the objects mtime and if that isn't present the
LastModified returned in the http headers
// ModTime returns the modification time of the object // // It attempts to read the objects mtime and if that isn ' t present the // LastModified returned in the http headers
func (o *Object) ModTime() time.Time {
	if fs.Config.UseServerModTime {
		return o.lastModified
	}
	err := o.readMetaData()
	if err != nil {
		fs.Logf(o, "Failed to read metadata: %v", err)
		return time.Now()
	}
	d, ok := o.meta[metaMtime]
	if !ok || d == nil {
		return o.lastModified
	}
	modTime, err := swift.FloatStringToTime(*d)
	if err != nil {
		fs.Logf(o, "Failed to read mtime from object: %v", err)
		return o.lastModified
	}
	return modTime
}
func ( o * Object ) ModTime ( ) time . Time { if fs . Config . UseServerModTime { return o . lastModified } err := o . readMetaData ( ) if err != nil { fs . Logf ( o , " " , err ) return time . Now ( ) } d , ok := o . meta [ metaMtime ] if ! ok || d == nil { return o . lastModified } modTime , err := swift . FloatStringToTime ( * d ) if err != nil { fs . Logf ( o , " " , err ) return o . lastModified } return modTime }
ModTime returns the modification time of the object
ModTime returns the modification time of the object
// read mtime out of metadata if available // fs.Debugf(o, "No metadata")