diff --git a/cmd/syncthing/walk.go b/cmd/syncthing/walk.go index 3f4c35c57..415c44ba0 100644 --- a/cmd/syncthing/walk.go +++ b/cmd/syncthing/walk.go @@ -8,6 +8,7 @@ import ( "os" "path" "path/filepath" + "runtime" "strings" "time" @@ -39,6 +40,9 @@ func (f File) NewerThan(o File) bool { } func isTempName(name string) bool { + if runtime.GOOS == "windows" { + name = filepath.ToSlash(name) + } return strings.HasPrefix(path.Base(name), ".syncthing.") }