ibec_ftp_ChangeDir

Description

ibec_ftp_ChangeDir changes the working directory on the FTP server.

Syntax

    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.

Example

 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; 

See also:
ibec_ftp_MakeDir
ibec_ftp_RemoveDir
ibec_ftp examples

back to top of page
<< ibec_ftp_Disconnect | IBEBlock | ibec_ftp_MakeDir >>