Browse Source

Expand tilde on Windows as well (fixes #289)

Jakob Borg 11 years ago
parent
commit
c519e582b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cmd/syncthing/main.go

+ 1 - 0
cmd/syncthing/main.go

@@ -695,6 +695,7 @@ func expandTilde(p string) string {
 		return getHomeDir()
 	}
 
+	p = filepath.FromSlash(p)
 	if !strings.HasPrefix(p, fmt.Sprintf("~%c", os.PathSeparator)) {
 		return p
 	}