From c519e582b5012889ff66fa456d5c1c0427962463 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 26 May 2014 16:58:03 +0200 Subject: [PATCH] Expand tilde on Windows as well (fixes #289) --- cmd/syncthing/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index bef650ed..6546d843 100644 --- a/cmd/syncthing/main.go +++ b/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 }