SizeOnlyStrategy determines to sync based on objects' file sizes.
| 21 | |
| 22 | // SizeOnlyStrategy determines to sync based on objects' file sizes. |
| 23 | type SizeOnlyStrategy struct{} |
| 24 | |
| 25 | func (s *SizeOnlyStrategy) ShouldSync(srcObj, dstObj *storage.Object) error { |
| 26 | if srcObj.Size == dstObj.Size { |
nothing calls this directly
no outgoing calls
no test coverage detected