summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-06-08 20:46:00 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-06-08 20:46:00 +0200
commite769ef9bbb2db10e3c44a0a055189e45a58716be (patch)
treebb23d8e9ecad93b4d46efc30371b0ddadf26b5ad /lib/private
parent1037533a9e3e3ad141c08dcfaef48abeb48ce8bf (diff)
parent6e2358c3a6b1417002b74275f1c34d738f35f1ba (diff)
downloadnextcloud-server-e769ef9bbb2db10e3c44a0a055189e45a58716be.tar.gz
nextcloud-server-e769ef9bbb2db10e3c44a0a055189e45a58716be.zip
Merge pull request #8916 from owncloud/rmdirr-test-cleanup-fix
Added hacky fix for long path cleanup routine
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index a054fc485a4..3e2c1db79da 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -406,6 +406,8 @@ class OC_Helper {
static function rmdirr($dir) {
if (is_dir($dir)) {
$files = scandir($dir);
+ // FIXME: use flat array instead of recursion to avoid
+ // too many levels
foreach ($files as $file) {
if ($file !== '' && $file !== "." && $file !== "..") {
self::rmdirr("$dir/$file");