Method SFTPClient():removeDir() Foundation

Removes a directory.

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

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

Description

Removes a directory from the SFTP 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.

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.