Method: dir::remove
Deletes a directory
Info
Syntax
dir::remove($dir, $keep=false)
Parameters
- $dir (string) The path of the directory
- $keep (boolean) If set to true, the directory will flushed but not removed.
Return (boolean)
True: the directory has been removed, false: removing failed
Example
$remove = dir::remove('mydirectory');
if($remove) echo 'the directory has been removed';