File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ limitations under the License.
1717package cmd
1818
1919import (
20- "path"
2120 "path/filepath"
2221
2322 "github.com/pkg/errors"
@@ -102,14 +101,14 @@ func setDstFileNameFromSrc(dst, src string) string {
102101 var dd , df , sf string
103102 switch {
104103 case guestToHost :
105- _ , sf = path .Split (src )
104+ _ , sf = pt .Split (src )
106105 dd , df = filepath .Split (dst )
107106 case guestToGuest :
108- _ , sf = path .Split (src )
109- dd , df = path .Split (dst )
107+ _ , sf = pt .Split (src )
108+ dd , df = pt .Split (dst )
110109 default :
111110 _ , sf = filepath .Split (src )
112- dd , df = path .Split (dst )
111+ dd , df = pt .Split (dst )
113112 }
114113
115114 // if dst is empty, dd and df will be empty, so return dst
@@ -133,7 +132,7 @@ func setDstFileNameFromSrc(dst, src string) string {
133132 return filepath .Join (dd , sf )
134133 }
135134
136- return path .Join (dd , sf )
135+ return pt .Join (dd , sf )
137136}
138137
139138// split path to node name and file path
You can’t perform that action at this time.
0 commit comments