(encoding)
| 385 | return ftp.listDir(); |
| 386 | }, |
| 387 | async readFile(encoding) { |
| 388 | const { data } = await ftp.readFile(); |
| 389 | if (encoding) { |
| 390 | return decode(data, encoding); |
| 391 | } |
| 392 | return data; |
| 393 | }, |
| 394 | async writeFile(content, encoding) { |
| 395 | if (typeof content === "string" && encoding) { |
| 396 | content = await encode(content, encoding); |
no test coverage detected