MCPcopy Index your code
hub / github.com/peak/s5cmd / SizeOnlyStrategy

Struct SizeOnlyStrategy

command/sync_strategy.go:23–23  ·  view source on GitHub ↗

SizeOnlyStrategy determines to sync based on objects' file sizes.

Source from the content-addressed store, hash-verified

21
22// SizeOnlyStrategy determines to sync based on objects' file sizes.
23type SizeOnlyStrategy struct{}
24
25func (s *SizeOnlyStrategy) ShouldSync(srcObj, dstObj *storage.Object) error {
26 if srcObj.Size == dstObj.Size {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected