non existing files can never be updated

This commit is contained in:
Robin Appelman 2012-02-11 16:06:34 +01:00
parent 1cffeefa06
commit 95459d068e
1 changed files with 3 additions and 0 deletions

View File

@ -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;