Archived
Expand tilde on Windows as well (fixes #289)
This commit is contained in:
1 parent
6b9dce36bf
commit
c519e582b5
1 file changed
+1
@@ -695,6 +695,7 @@ func expandTilde(p string) string {
|
|||||||
return getHomeDir()
|
return getHomeDir()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p = filepath.FromSlash(p)
|
||||||
if !strings.HasPrefix(p, fmt.Sprintf("~%c", os.PathSeparator)) {
|
if !strings.HasPrefix(p, fmt.Sprintf("~%c", os.PathSeparator)) {
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user