(fileName string)
| 87 | } |
| 88 | |
| 89 | func newRemotePath(fileName string) remotePath { |
| 90 | // we assume remote file is a linux container but we need to convert |
| 91 | // windows path separators to unix style for consistent processing |
| 92 | file := strings.ReplaceAll(stripTrailingSlash(fileName), `\`, "/") |
| 93 | return remotePath{file: file} |
| 94 | } |
| 95 | |
| 96 | func (p remotePath) String() string { |
| 97 | return p.file |
no test coverage detected