// Hash returns the selected checksum of the file
// If no checksum is available it returns ""
Hash returns the selected checksum of the file
If no checksum is available it returns ""
// Hash returns the selected checksum of the file // If no checksum is available it returns " "
func (o *Object) Hash(ctx context.Context, t hash.Type) (string, error) {
	if t != hash.MD5 {
		return "", hash.ErrUnsupported
	}
	etag := strings.Trim(strings.ToLower(o.etag), `"`)
	if !matchMd5.MatchString(etag) {
		fs.Debugf(o, "Invalid md5sum (probably multipart uploaded) - ignoring: %q", etag)
		return "", nil
	}
	return etag, nil
}
func ( o * Object ) Hash ( ctx context . Context , t hash . Type ) ( string , error ) { if t != hash . MD5 { return " " , hash . ErrUnsupported } etag := strings . Trim ( strings . ToLower ( o . etag ) , `"` ) if ! matchMd5 . MatchString ( etag ) { fs . Debugf ( o , " " , etag ) return " " , nil } return etag , nil }
Hash returns the selected checksum of the file
If no checksum is available it returns ""
Hash returns the selected checksum of the file If no checksum is available it returns " "
// Check the etag is a valid md5sum