apps/files_external/lib/Lib/Storage/StreamWrapper.php 1 location
|
@@ 49-55 (lines=7) @@
|
| 46 |
|
if (!is_resource($dh)) { |
| 47 |
|
return false; |
| 48 |
|
} |
| 49 |
|
while (($file = readdir($dh)) !== false) { |
| 50 |
|
if ($this->is_dir($path . '/' . $file)) { |
| 51 |
|
$this->rmdir($path . '/' . $file); |
| 52 |
|
} else { |
| 53 |
|
$this->unlink($path . '/' . $file); |
| 54 |
|
} |
| 55 |
|
} |
| 56 |
|
$url = $this->constructUrl($path); |
| 57 |
|
$success = rmdir($url); |
| 58 |
|
clearstatcache(false, $url); |
apps/files_external/lib/Lib/Storage/Swift.php 1 location
|
@@ 251-261 (lines=11) @@
|
| 248 |
|
} |
| 249 |
|
|
| 250 |
|
$dh = $this->opendir($path); |
| 251 |
|
while ($file = readdir($dh)) { |
| 252 |
|
if (\OC\Files\Filesystem::isIgnoredDir($file)) { |
| 253 |
|
continue; |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
if ($this->is_dir($path . '/' . $file)) { |
| 257 |
|
$this->rmdir($path . '/' . $file); |
| 258 |
|
} else { |
| 259 |
|
$this->unlink($path . '/' . $file); |
| 260 |
|
} |
| 261 |
|
} |
| 262 |
|
|
| 263 |
|
try { |
| 264 |
|
$this->objectStore->deleteObject($path . '/'); |