(sftp: SFTPWrapper, path: string)
| 307 | // this was hoisted into the helpers. |
| 308 | |
| 309 | function sftpRealpath(sftp: SFTPWrapper, path: string): Promise<string> { |
| 310 | return new Promise<string>((resolve, reject) => { |
| 311 | sftp.realpath(path, (err, absPath) => { |
| 312 | if (err) { |
| 313 | reject(mapSftpError('realpath', err)); |
| 314 | } else { |
| 315 | resolve(absPath); |
| 316 | } |
| 317 | }); |
| 318 | }); |
| 319 | } |
| 320 | |
| 321 | function sftpStat(sftp: SFTPWrapper, path: string): Promise<SFTPStats> { |
| 322 | return new Promise<SFTPStats>((resolve, reject) => { |
no test coverage detected