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

Method shouldSkipDstObject

command/sync.go:575–588  ·  view source on GitHub ↗
(object *storage.Object, verbose bool)

Source from the content-addressed store, hash-verified

573}
574
575func (s Sync) shouldSkipDstObject(object *storage.Object, verbose bool) bool {
576 if object.Type.IsDir() || errorpkg.IsCancelation(object.Err) {
577 return true
578 }
579
580 if err := object.Err; err != nil {
581 if verbose {
582 printError(s.fullCommand, s.op, err)
583 }
584 return true
585 }
586
587 return false
588}
589
590// shouldStopSync determines whether a sync process should be stopped or not.
591func (s Sync) shouldStopSync(err error) bool {

Callers 1

Calls 2

printErrorFunction · 0.85
IsDirMethod · 0.80

Tested by

no test coverage detected