Send default permissions 0777 on directories when IgnorePerms set (ref #284)
This commit is contained in:
parent
cfd1fdb38e
commit
8e0520887a
@ -167,7 +167,7 @@ func (w *Walker) walkAndHashFiles(res *[]File, ign map[string][]string) filepath
|
||||
} else {
|
||||
var flags uint32 = protocol.FlagDirectory
|
||||
if w.IgnorePerms {
|
||||
flags |= protocol.FlagNoPermBits
|
||||
flags |= protocol.FlagNoPermBits | 0777
|
||||
} else {
|
||||
flags |= uint32(info.Mode() & os.ModePerm)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user