summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-02-11 16:06:34 +0100
committerRobin Appelman <icewind@owncloud.com>2012-02-21 20:48:48 +0100
commit95459d068e47b83ed13348da3e1d03d062209e41 (patch)
tree15dd7d36b62285e0e6c5283a365c9f145e84a8f1 /lib/filecache.php
parent1cffeefa069075054f9c2f676b84ddc02b56232c (diff)
downloadnextcloud-server-95459d068e47b83ed13348da3e1d03d062209e41.tar.gz
nextcloud-server-95459d068e47b83ed13348da3e1d03d062209e41.zip
non existing files can never be updated
Diffstat (limited to 'lib/filecache.php')
-rw-r--r--lib/filecache.php3
1 files changed, 3 insertions, 0 deletions
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;