adding removeFile proc to asyncftpclient
This commit is contained in:
parent
723bc158ce
commit
cd41479180
1 changed files with 4 additions and 0 deletions
|
|
@ -354,6 +354,10 @@ proc store*(ftp: AsyncFtpClient, file, dest: string,
|
|||
|
||||
await doUpload(ftp, destFile, onProgressChanged)
|
||||
|
||||
proc removeFile*(ftp: AsyncFtpClient, filename: string) {.async.} =
|
||||
## Delete a file ``filename`` on the remote FTP server
|
||||
assertReply(await ftp.send("DELE " & filename), "250")
|
||||
|
||||
proc newAsyncFtpClient*(address: string, port = Port(21),
|
||||
user, pass = ""): AsyncFtpClient =
|
||||
## Creates a new ``AsyncFtpClient`` object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue