rmdir()

The function deletes a specified directory.

Synopsis

bool rmdir( string dir[, bool recursive = false]);

Parameters

Parameter Description
dir The directory (including the path) that should be deleted.
recursive TRUE or FALSE

Return Value

If a directory was successfully deleted, the function returns 1 and otherwise 0.

Errors

Missing or wrong parameter definitions.

Description

The function deletes a specified directory.

Example

main()
{
   bool result;
   result = rmdir("C://test3",TRUE);
   DebugN(result);
}      

Assignment

File functions

Availability

CTRL