From 549541215e41cc42d94ae92f72df423fce1e5a1c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 17 Jun 2012 02:15:11 +0200 Subject: [PATCH] get the correct metadate from updated folders to put in the cache --- lib/filecache/update.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5