mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 19:54:57 +00:00
SFTP: try to delete dir even if it can't be opened
This commit is contained in:
parent
c22bf62ce1
commit
1dfd1b9cd4
@ -2764,7 +2764,7 @@ class Net_SFTP extends Net_SSH2
|
|||||||
// normally $entries would have at least . and .. but it might not if the directories
|
// normally $entries would have at least . and .. but it might not if the directories
|
||||||
// permissions didn't allow reading
|
// permissions didn't allow reading
|
||||||
if (empty($entries)) {
|
if (empty($entries)) {
|
||||||
return false;
|
$entries = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($entries['.'], $entries['..']);
|
unset($entries['.'], $entries['..']);
|
||||||
|
Loading…
Reference in New Issue
Block a user