wwFtpClient::DeleteDirectory

Deletes a directory from the FTP server.

o.wwFtpClient.DeleteDirectory(lcFtpPath)

Return Value

.T or .F. - check .cErrorMsg for error information.

Parameters

lcFtpPath
The path on the FTP server to delete

  • /
  • /SubFolder
  • /SubFolder/SubFolder1

Example

oFtp.CreateDirectory("/tempUpload")
oFtp.UploadFile(".\testfile.pdf","/tempUpload/testfile.pdf")

oFtp.DeleteFile("/tempUpload/testfile.pdf")
oFtp.DeleteDirectory("/tempUpload")

See also:

Class wwSftpClient

© West Wind Technologies, 2024 • Updated: 06/02/24
Comment or report problem with topic