Method
shouldUpdatePermissions
(local, remote fs.Entry, modclear os.FileMode)
Source from the content-addressed store, hash-verified
| 340 | } |
| 341 | |
| 342 | func (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 | |
| 350 | func (o *FilesystemOutput) shouldUpdateTimes(local, remote fs.Entry) bool { |
| 351 | if o.SkipTimes { |
Tested by
no test coverage detected