MCPcopy Create free account
hub / github.com/rclone/rclone / Remove

Method Remove

backend/memory/memory.go:679–686  ·  view source on GitHub ↗

Remove an object

(ctx context.Context)

Source from the content-addressed store, hash-verified

677
678// Remove an object
679func (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
689func (o *Object) MimeType(ctx context.Context) string {

Callers

nothing calls this directly

Calls 2

splitMethod · 0.95
removeObjectDataMethod · 0.80

Tested by

no test coverage detected