Remove an object
(ctx context.Context)
| 677 | |
| 678 | // Remove an object |
| 679 | func (o *Object) Remove(ctx context.Context) error { |
| 680 | bucket, bucketPath := o.split() |
| 681 | removed := buckets.removeObjectData(bucket, bucketPath) |
| 682 | if !removed { |
| 683 | return fs.ErrorObjectNotFound |
| 684 | } |
| 685 | return nil |
| 686 | } |
| 687 | |
| 688 | // MimeType of an Object if known, "" otherwise |
| 689 | func (o *Object) MimeType(ctx context.Context) string { |
nothing calls this directly
no test coverage detected