apps/files_external/lib/Lib/Storage/Swift.php 1 location
|
@@ 230-240 (lines=11) @@
|
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
$dh = $this->opendir($path); |
| 230 |
|
while ($file = \readdir($dh)) { |
| 231 |
|
if (\OC\Files\Filesystem::isIgnoredDir($file)) { |
| 232 |
|
continue; |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
if ($this->is_dir($path . '/' . $file)) { |
| 236 |
|
$this->rmdir($path . '/' . $file); |
| 237 |
|
} else { |
| 238 |
|
$this->unlink($path . '/' . $file); |
| 239 |
|
} |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
try { |
| 243 |
|
$this->getContainer()->dataObject()->setName($path . '/')->delete(); |
apps/files_external/lib/Lib/Storage/StreamWrapper.php 1 location
|
@@ 52-58 (lines=7) @@
|
| 49 |
|
if (!\is_resource($dh)) { |
| 50 |
|
return false; |
| 51 |
|
} |
| 52 |
|
while (($file = \readdir($dh)) !== false) { |
| 53 |
|
if ($this->is_dir($path . '/' . $file)) { |
| 54 |
|
$this->rmdir($path . '/' . $file); |
| 55 |
|
} else { |
| 56 |
|
$this->unlink($path . '/' . $file); |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
$url = $this->constructUrl($path); |
| 60 |
|
$success = \rmdir($url); |
| 61 |
|
\clearstatcache(false, $url); |