Method FTPClient():curDir() Professional
Determine or change the current directory on the FTP server.
:curDir( [<cCurrrentDir>] ) --> cOldCurrentDir
The method returns the previous current directory. In case of an error the return is the empty string ("").
The method :curDir() can be used for changing or determining the current directory on the FTP server. All operations on the remote filesystem which do not have a path specified use the current directory as the default directory.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.