MCPcopy
hub / github.com/rclone/rclone / WriteUncheckedObject

Method WriteUncheckedObject

fstest/run.go:301–303  ·  view source on GitHub ↗

WriteUncheckedObject writes an object to the remote not checking for duplicates

(ctx context.Context, remote, content string, modTime time.Time)

Source from the content-addressed store, hash-verified

299
300// WriteUncheckedObject writes an object to the remote not checking for duplicates
301func (r *Run) WriteUncheckedObject(ctx context.Context, remote, content string, modTime time.Time) Item {
302 return r.WriteObjectTo(ctx, r.Fremote, remote, content, modTime, true)
303}
304
305// WriteBoth calls WriteObject and WriteFile with the same arguments
306func (r *Run) WriteBoth(ctx context.Context, remote, content string, modTime time.Time) Item {

Callers 9

TestDeduplicateSkipFunction · 0.95
TestDeduplicateSizeOnlyFunction · 0.95
TestDeduplicateFirstFunction · 0.95
TestDeduplicateNewestFunction · 0.95
TestDeduplicateOldestFunction · 0.95
TestDeduplicateLargestFunction · 0.95
TestDeduplicateSmallestFunction · 0.95
TestDeduplicateRenameFunction · 0.95

Calls 1

WriteObjectToMethod · 0.95

Tested by 9

TestDeduplicateSkipFunction · 0.76
TestDeduplicateSizeOnlyFunction · 0.76
TestDeduplicateFirstFunction · 0.76
TestDeduplicateNewestFunction · 0.76
TestDeduplicateOldestFunction · 0.76
TestDeduplicateLargestFunction · 0.76
TestDeduplicateSmallestFunction · 0.76
TestDeduplicateRenameFunction · 0.76