(path string)
| 126 | } |
| 127 | |
| 128 | func fixRelativePaths(path string) (string, error) { |
| 129 | conn, err := connparse.ParseURI(path) |
| 130 | if err != nil { |
| 131 | return "", err |
| 132 | } |
| 133 | if conn.Scheme == connparse.ConnectionTypeWsh { |
| 134 | if conn.Host == connparse.ConnHostCurrent { |
| 135 | conn.Host = RpcContext.Conn |
| 136 | fixedPath, err := fileutil.FixPath(conn.Path) |
| 137 | if err != nil { |
| 138 | return "", err |
| 139 | } |
| 140 | conn.Path = fixedPath |
| 141 | } |
| 142 | if conn.Host == "" { |
| 143 | conn.Host = wshrpc.LocalConnName |
| 144 | } |
| 145 | } |
| 146 | return conn.GetFullURI(), nil |
| 147 | } |
no test coverage detected