Ftp.currentdir read/write property



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

local net = require "net" local url = "your ftp server address" local ftpclient = net.Ftp(url, "anonymous", "guest") -- outputs ftp port print("ftp port = "..ftpclient.port)