DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


RemoveDir

Declaration: TFtpConnection.RemoveDir (Path: string): integer;
The method RemoveDir deletes the directory specified by the Path parameter. Please note that the directory has to be empty before you can remove it.

The function returns the following error codes:

 0 ... everything is OK
-2 ... path not found or directory not empty
-3 ... cannot read file (access error)
-9 ... unspecified error

Hint 1: Most FTP servers are Unix-based. Thus the path to the directory (Path) normally uses slashes (/) instead of backslashes (\) to separate directories. Failing to use the correct separation character will result in an error (-2).