/ Published in: PHP
This was copied off wordpress FTP plugin
Expand |
Embed | Plain Text
/** * Function used to delete a folder. * @param $path full-path to folder * @return bool result of deletion */ function folderDelete($path) { } }else{ $entries = scandir($path); } foreach ($entries as $entry) { if ($entry != '.' && $entry != '..') { folderDelete($path.'/'.$entry); } } }else{ } }
You need to login to post a comment.
