ibec_ftp_ChangeDir changes the working directory on the FTP server.
function ibec_ftp_ChangeDir(FTPSession : variant; DirName : string) : boolean;
The ibec_ftp_ChangeDir function changes the working directory on the FTP server. The DirName variable specifies the directory on the FTP server to change to. The function returns TRUE in case of success. Otherwise it returns FALSE.
FTPSession = ibec_ftp_OpenSession('HostName=myftpserver.com; UserName=me; Password=mysecret'); try if (ibec_ftp_Connect(FTPSession)) then begin ibec_ftp_ChangeDir(FTPSession, '\uploads'); ... end; finally ibec_ftp_CloseSession(FTPSession); end;