From: Joas Schilling Date: Mon, 11 Aug 2014 15:05:35 +0000 (+0200) Subject: Do not filemtime() on "." directory. Use empty string instead X-Git-Tag: v8.0.0alpha1~872^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=564bf23c1b37e3de1cbcd507687bcc8873ec1982;p=nextcloud-server.git Do not filemtime() on "." directory. Use empty string instead Fix #9928 --- diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php index 8bfa5fc74ca..4b70acbbead 100644 --- a/lib/private/files/cache/updater.php +++ b/lib/private/files/cache/updater.php @@ -180,6 +180,11 @@ class Updater { $cache = $storage->getCache(); $parentId = $cache->getParentId($internalPath); $parent = dirname($internalPath); + + if ($parent === '.' || $parent === '/' || $parent === '\\') { + $parent = ''; + } + if ($parentId != -1) { $cache->update($parentId, array('storage_mtime' => $storage->filemtime($parent))); }