fixed delete directories function

canary
WolverinDEV 2019-03-31 13:21:47 +02:00
parent ac1b9f84a0
commit c21726cb3f
1 changed files with 3 additions and 0 deletions

View File

@ -296,6 +296,9 @@
}
function delete_directories(&$error, $path, $dry_run = false) {
if(!file_exists($path))
return true;
if(strpos(PHP_OS, "Linux") !== false) {
$command = "rm -r " . $path;
} else if(strpos(PHP_OS, "WINNT") !== false) {