diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php index 7b4abf08f4..e8be7daba7 100644 --- a/lib/private/files/storage/local.php +++ b/lib/private/files/storage/local.php @@ -134,6 +134,7 @@ if (\OC_Util::runningOnWindows()) { } public function filemtime($path) { + clearstatcache($this->getSourcePath($path)); return filemtime($this->getSourcePath($path)); } diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php index fe6fff4ebd..8f813f973b 100644 --- a/lib/private/files/storage/mappedlocal.php +++ b/lib/private/files/storage/mappedlocal.php @@ -153,6 +153,7 @@ class MappedLocal extends \OC\Files\Storage\Common { } public function filemtime($path) { + clearstatcache($this->getSourcePath($path)); return filemtime($this->getSourcePath($path)); }