SFTP: try to delete dir even if it can't be opened

This commit is contained in:
terrafrost 2022-05-06 14:19:42 -05:00
parent c22bf62ce1
commit 1dfd1b9cd4

View File

@ -2764,7 +2764,7 @@ class Net_SFTP extends Net_SSH2
// normally $entries would have at least . and .. but it might not if the directories
// permissions didn't allow reading
if (empty($entries)) {
return false;
$entries = array();
}
unset($entries['.'], $entries['..']);