Removes a directory on the FTP Server.
Note
Probably, if the directory is not empty, the FTP Server will not remove the directory.
=
Object.RemoveFTPDirectory
Parameter
-
lcDir
-
Directory
Type |
Character |
Direction |
Input |
Name of the directory to remove on the FTP Server.
Returns .T.
if the function successfully removed the directory on the FTP Server.
Returns .F.
if the function could not remove the directory on the server.
Source Code
LPARAMETERS lcDir
LOCAL fResult
IF This.OpenFTPConnection(This.cStartupFolder) && Open an FTP Handle
lcDir = lcDir + cNULL
=This.BeforeRemoveFTPDirectory(lcDir)
fResult = FtpRemoveDirectory(This.nConnect_Handle, @lcDir)
=This.GetExtendedError()
=This.AfterRemoveFTPDirectory(lcDir,fResult)
=IIF(This.lMultiOperations,.T.,This.CloseFTPConnection()) && Close FTP Handle
RETURN fResult = 1
ENDIF
RETURN .F.