(sftp: SFTPWrapper, path: string, content: string)
| 66 | } |
| 67 | |
| 68 | function writeRemoteFile(sftp: SFTPWrapper, path: string, content: string): Promise<void> { |
| 69 | return new Promise((resolve, reject) => { |
| 70 | sftp.writeFile(path, content, (err) => (err ? reject(err) : resolve())) |
| 71 | }) |
| 72 | } |
| 73 | |
| 74 | /** Resolves a tool-supplied path against `repoPath`, rejecting traversal/escape. */ |
| 75 | function resolveRepoPath(repoPath: string, candidate: string): string { |
no test coverage detected