ibec_ftp_RemoveDir

Description

ibec_ftp_RemoveDir deletes a directory on the FTP server.

Syntax

 function ibec_ftp_RemoveDir(FTPSession : variant; DirName : string) : boolean;

ibec_ftp_RemoveDir deletes a specified directory on the FTP server. The DirName variable specifies the name of the directory to delete. 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_RemoveDir(FTPSession, 'DataFiles');
        ...
      end;
    finally
      ibec_ftp_CloseSession(FTPSession); 
    end;

See also:
ibec_ftp_ChangeDir
ibec_ftp_MakeDir
ibec_ftp examples

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