Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2020-07-03 23:44:31 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-08-12 04:26:33 +0300
commitbe73fd90fc51440474d0f5e801934cafd327b4df (patch)
treead730caa797a6ff9e63708f31c6a3e60720bc4bb /lib
parent6f72871ca5970df6f288d721f3bdc7f79dd037c9 (diff)
Only clear the realpath cache
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/Local.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index a8fa32f608e..6d350512b22 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -142,8 +142,8 @@ class Local extends \OC\Files\Storage\Common {
}
public function stat($path) {
- clearstatcache();
$fullPath = $this->getSourcePath($path);
+ clearstatcache(true, $fullPath);
$statResult = stat($fullPath);
if (PHP_INT_SIZE === 4 && !$this->is_dir($path)) {
$filesize = $this->filesize($path);
@@ -158,7 +158,7 @@ class Local extends \OC\Files\Storage\Common {
*/
public function getMetaData($path) {
$fullPath = $this->getSourcePath($path);
- clearstatcache();
+ clearstatcache(true, $fullPath);
$stat = @stat($fullPath);
if (!$stat) {
return null;