MCPcopy
hub / github.com/kopia/kopia / shouldUpdatePermissions

Method shouldUpdatePermissions

snapshot/restore/local_fs_output.go:342–348  ·  view source on GitHub ↗
(local, remote fs.Entry, modclear os.FileMode)

Source from the content-addressed store, hash-verified

340}
341
342func (o *FilesystemOutput) shouldUpdatePermissions(local, remote fs.Entry, modclear os.FileMode) bool {
343 if o.SkipPermissions {
344 return false
345 }
346
347 return ((local.Mode() & fs.ModBits) &^ modclear) != (remote.Mode() & fs.ModBits)
348}
349
350func (o *FilesystemOutput) shouldUpdateTimes(local, remote fs.Entry) bool {
351 if o.SkipTimes {

Callers 1

setAttributesMethod · 0.95

Calls 1

ModeMethod · 0.45

Tested by

no test coverage detected