From: Robin Appelman Date: Sun, 17 Jun 2012 00:15:11 +0000 (+0200) Subject: get the correct metadate from updated folders to put in the cache X-Git-Tag: v4.5.0beta1~74^2~414^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=549541215e41cc42d94ae92f72df423fce1e5a1c;p=nextcloud-server.git get the correct metadate from updated folders to put in the cache --- diff --git a/lib/filecache/update.php b/lib/filecache/update.php index 2e3eb67da08..dd77f491ca0 100644 --- a/lib/filecache/update.php +++ b/lib/filecache/update.php @@ -159,9 +159,9 @@ class OC_FileCache_Update{ foreach($cachedContent as $file){ $size+=$file['size']; } - $mtime=$view->filemtime($path); - $ctime=$view->filectime($path); - $writable=$view->is_writable($path); + $mtime=$view->filemtime($path.'/'); + $ctime=$view->filectime($path.'/'); + $writable=$view->is_writable($path.'/'); OC_FileCache::put($path,array('size'=>$size,'mtime'=>$mtime,'ctime'=>$ctime,'mimetype'=>$mimetype,'writable'=>$writable)); }else{ $count=0;