mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
Pick up dirs without a CurrentFiler
This commit is contained in:
parent
39a691a7e6
commit
45dfd616cb
@ -176,7 +176,10 @@ func (w *Walker) walkAndHashFiles(res *[]protocol.FileInfo, ign map[string][]str
|
|||||||
l.Debugln("unchanged:", cf)
|
l.Debugln("unchanged:", cf)
|
||||||
}
|
}
|
||||||
*res = append(*res, cf)
|
*res = append(*res, cf)
|
||||||
} else {
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var flags uint32 = protocol.FlagDirectory
|
var flags uint32 = protocol.FlagDirectory
|
||||||
if w.IgnorePerms {
|
if w.IgnorePerms {
|
||||||
flags |= protocol.FlagNoPermBits | 0777
|
flags |= protocol.FlagNoPermBits | 0777
|
||||||
@ -190,13 +193,11 @@ func (w *Walker) walkAndHashFiles(res *[]protocol.FileInfo, ign map[string][]str
|
|||||||
Modified: info.ModTime().Unix(),
|
Modified: info.ModTime().Unix(),
|
||||||
}
|
}
|
||||||
if debug {
|
if debug {
|
||||||
l.Debugln("dir:", cf, f)
|
l.Debugln("dir:", f)
|
||||||
}
|
}
|
||||||
*res = append(*res, f)
|
*res = append(*res, f)
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if info.Mode().IsRegular() {
|
if info.Mode().IsRegular() {
|
||||||
if w.CurrentFiler != nil {
|
if w.CurrentFiler != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user