[FIX] #83 issue with FTP file with wrong rights.
This commit is contained in:
parent
1d9e478f2e
commit
4f3604e717
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue