Brimbox Logo Brimbox Version 2.3.4 Released

empty_directory>>

Method to empty or delete a directory.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function empty_directory($directory, $delete = false)

Usage:

$main->empty_directory($dir, $delete);

Parameter: $dir (string, valid directory)
Directory to be emptied or removed, usually a relative path.

Parameter: $delete (optional boolean)
If true, will delete the passed directory. If false, only empties the specified directory.

Updated: 2016-07-17