[FIX] #83 issue with FTP file with wrong rights.

This commit is contained in:
Benjamin Sonntag 2016-08-26 16:31:19 +02:00
parent 1d9e478f2e
commit 4f3604e717
1 changed files with 4 additions and 0 deletions

View File

@ -1108,6 +1108,10 @@ class m_bro {
$err->log("bro", "_delete($file)");
if (is_dir($file)) {
$handle = opendir($file);
if (!$handle) {
rmdir($file); // let's try it anyway...
return; // skip unreacheable folders
}
while (($filename = readdir($handle)) !== false) {
if ($filename != "." && $filename != "..") {
$this->_delete($file . "/" . $filename);