aboutsummaryrefslogtreecommitdiff
path: root/src/os/file_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/file_windows.go')
-rw-r--r--src/os/file_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/file_windows.go b/src/os/file_windows.go
index d40f335d83..245f994321 100644
--- a/src/os/file_windows.go
+++ b/src/os/file_windows.go
@@ -292,10 +292,10 @@ func Symlink(oldname, newname string) error {
// need the exact location of the oldname when it's relative to determine if it's a directory
destpath := oldname
- if v := volumeName(oldname); v == "" {
+ if v := filepathlite.VolumeName(oldname); v == "" {
if len(oldname) > 0 && IsPathSeparator(oldname[0]) {
// oldname is relative to the volume containing newname.
- if v = volumeName(newname); v != "" {
+ if v = filepathlite.VolumeName(newname); v != "" {
// Prepend the volume explicitly, because it may be different from the
// volume of the current working directory.
destpath = v + oldname