* when the dir is '/', skip it.
This commit is contained in:
@@ -58,6 +58,7 @@ class file
|
||||
public function removeDir($dir)
|
||||
{
|
||||
$dir = realpath($dir) . '/';
|
||||
if($dir == '/') return false;
|
||||
|
||||
if(!is_writable($dir)) return false;
|
||||
if(!is_dir($dir)) return true;
|
||||
|
||||
Reference in New Issue
Block a user