From: Robin Appelman Date: Sat, 11 Feb 2012 15:06:34 +0000 (+0100) Subject: non existing files can never be updated X-Git-Tag: v4.0.0beta~440^2~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=95459d068e47b83ed13348da3e1d03d062209e41;p=nextcloud-server.git non existing files can never be updated --- diff --git a/lib/filecache.php b/lib/filecache.php index 6ae2f8253db..5d299ff24ee 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -515,6 +515,9 @@ class OC_FileCache{ } $view=new OC_FilesystemView($root); } + if(!$view->file_exists($path)){ + return false; + } $mtime=$view->filemtime($path); $isDir=$view->is_dir($path); $path=$root.$path;