Ftp.currentdir
The Ftp.currentdir property gets or sets the current directory on the FTP server as a string.
Returns nil if the value could not be retrieved (get more information with the net.error property).
Example
--! luart-extensions
import net
local url = "your ftp server address"
local ftpclient = net.Ftp(url, "anonymous", "guest")
-- outputs current directory
print("current directory = "..ftpclient.currentdir)