diff options
author | Jakob Borg <jakob@nym.se> | 2014-05-26 16:58:03 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-05-26 16:58:03 +0200 |
commit | c519e582b5012889ff66fa456d5c1c0427962463 (patch) | |
tree | a6fc150552ad8967c41a04388dbc3baee81b683a /cmd | |
parent | 6b9dce36bff4740d723bd92b446b617eb3a73468 (diff) |
Expand tilde on Windows as well (fixes #289)v0.8.11
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/syncthing/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index bef650ed2a..6546d84317 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 } |