mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fixing rmdir in \OC\Files\Storage\AmazonS3
This commit is contained in:
parent
0a5e18335e
commit
839ab7f2e6
1 changed files with 4 additions and 4 deletions
|
|
@ -148,14 +148,14 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
|
||||
$dh = $this->opendir($path);
|
||||
while ($file = readdir($dh)) {
|
||||
if ($file == '.' || $file != '..') {
|
||||
if ($file == '.' || $file == '..') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($this->is_dir(stripcslashes($file))) {
|
||||
$this->rmdir(stripcslashes($file));
|
||||
if ($this->is_dir($path . '/' . $file)) {
|
||||
$this->rmdir($path . '/' . $file);
|
||||
} else {
|
||||
$this->unlink(stripcslashes($file));
|
||||
$this->unlink($path . '/' . $file);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue