FTPRemoveDirectory Method

Action2 Example

 

Encapsulates the AutoMate™ action in the “FTP” group, “FTP Remove Directory.” The method attempts to delete a directory on the FTP server.

 

Declaration

function FTPRemoveDirectory (varDirectory As Variant,

intIncludeSubDirs As Integer) As Integer

 

Parameters

varDirectory

 The full path of the directory on the FTP server to be deleted.

 

intIncludeSubDirs

 If set to “0”, the remove directory command applies to only the current directory. If set to “1”, the remove directory command will go through all subdirectories as well.

 

Description

The FTPRemoveDirectory method attempts to delete a directory on the FTP server specified by varDirectory.

 

The directory must be empty for the function to succeed.

 

A connection to the FTP server must have been previously established by a successful called to FTPLogin.

 

 

NOTE: The Action2 FTP methods (with the exception of FTPQuickSend and FTPQuickRetrieve) may not function properly in the AutoMate™ BASIC IDE. To more accurately use these functions, run the script from within an AutoMate™ task using the “Run a BASIC Script” action.