get the correct metadate from updated folders to put in the cache

This commit is contained in:
Robin Appelman 2012-06-17 02:15:11 +02:00
parent e8dd86ce0d
commit 549541215e

View File

@ -159,9 +159,9 @@ class OC_FileCache_Update{
foreach($cachedContent as $file){ foreach($cachedContent as $file){
$size+=$file['size']; $size+=$file['size'];
} }
$mtime=$view->filemtime($path); $mtime=$view->filemtime($path.'/');
$ctime=$view->filectime($path); $ctime=$view->filectime($path.'/');
$writable=$view->is_writable($path); $writable=$view->is_writable($path.'/');
OC_FileCache::put($path,array('size'=>$size,'mtime'=>$mtime,'ctime'=>$ctime,'mimetype'=>$mimetype,'writable'=>$writable)); OC_FileCache::put($path,array('size'=>$size,'mtime'=>$mtime,'ctime'=>$ctime,'mimetype'=>$mimetype,'writable'=>$writable));
}else{ }else{
$count=0; $count=0;