Ftp:removedir(path)method
Removes the specified directory from the FTP server.
Parameters
path
A string that contains the name of the directory to be removed. This can be either a fully qualified path or a name relative to the current FTP directory.
Return value
This method return a Task instance. Once the Task has finished, it will return a
boolean value indicating if the operation was successful.
Example
--! luart-extensions
import net
-- connect to the FTP server
local url = "your ftp server"
local client = net.Ftp(url, "username", "password")
-- remove directory "/test/"
if await(client:removedir("/test/")) then
print("Successfully removed FTP directory '/test/'")
else
error(net.error)
end