diff --git a/src/Adapter/Local.php b/src/Adapter/Local.php index 8e61e658a..9d9ed3d71 100644 --- a/src/Adapter/Local.php +++ b/src/Adapter/Local.php @@ -297,6 +297,8 @@ public function listContents($directory = '', $recursive = false) public function getMetadata($path) { $location = $this->applyPathPrefix($path); + clearstatcache($location); + filesize() $info = new SplFileInfo($location); return $this->normalizeFileInfo($info);