Method to empty or delete a directory.
Class: bb_main, called as $main
File: bb_main.php (php)
function empty_directory($directory, $delete = false)
$dir (string, valid directory)
Directory to be emptied or removed, usually a relative path.
$delete (optional boolean)
true, will delete the passed directory. If
false, only empties the specified directory.