Method FTPClient2():removeDir() Foundation

Removes a directory.

Syntax
:removeDir( <cDirectory> ) --> lSuccess
Parameters
<cDirectory>
The relative or fully qualified path of the directory to be on from the server.
Return

.T. (true) if successful, .F. (false) if the directory cannot be removed.

Description

Removes a directory from the FTP server. The directory must be empty for the operation to succeed.

If the operation fails, use :getLastError() and :getLastMessage() methods to get details about what went wrong. Common failures include attempting to remove a non-empty directory or insufficient permissions.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.