DeleteFTPDirectory (open)

This function will delete a directory. When the directory is not recursively deleted, it should be empty.

Syntax

LOADLIB "wh::internet/ftp.whlib";

BOOLEAN FUNCTION DeleteFTPDirectory(INTEGER connectionid, STRING dirname, BOOLEAN recursive)

Parameters

INTEGER connectionid

Integer id of the connection (opened by OpenFTPSite)

STRING dirname

Name of the file

BOOLEAN recursive

Delete all subfiles and subfolders as well

Return value

BOOLEAN

boolean indicating if the command was succesfull