mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
merge my fix from master b464970142
This commit is contained in:
parent
5610429a02
commit
d3df80a078
2 changed files with 2 additions and 2 deletions
2
lib/files/cache/cache.php
vendored
2
lib/files/cache/cache.php
vendored
|
|
@ -441,7 +441,7 @@ class Cache {
|
|||
$this->calculateFolderSize($path);
|
||||
if ($path !== '') {
|
||||
$parent = dirname($path);
|
||||
if ($parent === '.') {
|
||||
if ($parent === '.' or $parent === '/') {
|
||||
$parent = '';
|
||||
}
|
||||
$this->correctFolderSize($parent);
|
||||
|
|
|
|||
2
lib/files/cache/scanner.php
vendored
2
lib/files/cache/scanner.php
vendored
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue