]> source.dussan.org Git - nextcloud-server.git/commitdiff
merge my fix from master b4649701423c2e75373a5ecf7640c6e2b781a970
authorFlorin Peter <github@florin-peter.de>
Mon, 6 May 2013 19:14:59 +0000 (21:14 +0200)
committerFlorin Peter <github@florin-peter.de>
Mon, 6 May 2013 19:14:59 +0000 (21:14 +0200)
lib/files/cache/cache.php
lib/files/cache/scanner.php

index 4e32ff2ba8a374a29f2c065e948c82501b7a115c..d0c871bead0d301672bb560c114054cd34efa68c 100644 (file)
@@ -441,7 +441,7 @@ class Cache {
                $this->calculateFolderSize($path);
                if ($path !== '') {
                        $parent = dirname($path);
-                       if ($parent === '.') {
+                       if ($parent === '.' or $parent === '/') {
                                $parent = '';
                        }
                        $this->correctFolderSize($parent);
index f019d4fc608b34588ffbd9d4c5b093a9b5d3f70d..5241acec1ee6b6b3c34c0196f3b98362a9020cec 100644 (file)
@@ -68,7 +68,7 @@ class Scanner {
                        if ($data) {
                                if ($file) {
                                        $parent = dirname($file);
-                                       if ($parent === '.') {
+                                       if ($parent === '.' or $parent === '/') {
                                                $parent = '';
                                        }
                                        if (!$this->cache->inCache($parent)) {