Else if a lot of writes happen. It might happen that an old stat result is used. Resulting in a wrong file size for the file. For example the text app when a lot of people edit at the same time. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>tags/v20.0.0beta1
@@ -156,6 +156,7 @@ class Local extends \OC\Files\Storage\Common { | |||
*/ | |||
public function getMetaData($path) { | |||
$fullPath = $this->getSourcePath($path); | |||
clearstatcache(); | |||
$stat = @stat($fullPath); | |||
if (!$stat) { | |||
return null; |