nim 0.14.2, win10
var ftp = newAsyncFtpClient(host, user = "test", pass = "test")
proc main(ftp: AsyncFtpClient) {.async.} =
await ftp.connect()
echo await ftp.pwd()
echo await ftp.listDirs()
await ftp.retrFile("1.txt", "1.txt")
echo("Finished")
waitFor main(ftp)
retrFile can't use, error: Reply has no file size, connect/pwd/listdirs is ok.
I can download 1.txt when I use firefox.
@pyloor: Yeah, I use IIS ftp server test.
I haven't try other ftp server, So don't know can use it at them.