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