mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Expand tilde on Windows as well (fixes #289)
This commit is contained in:
parent
6b9dce36bf
commit
c519e582b5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user