GetCurrentDirectory

GetCurrentDirectory retrieves current directory on the ftp server. Any file functions (example: upload or download) are relative to this directory.

Syntax

STRING GetCurrentDirectory()

Returns

The current working directory on the FTPA protocol used to transfer files between network computers. server as a string.

Example

An example which echoes the current FTP working directory:

Function Main

Dim FTPobj as Object

ip = "127.0.0.1"

port = 21

mode = FALSE

username = "anonymous"

password = "test@lnss.com"

Set FTPobj=FTP.Connect (ip,21,mode,username,password)

cdir = FTPobj.GetCurrentDirectory

echo cdir

End Function