]> source.dussan.org Git - nextcloud-server.git/commitdiff
get the correct metadate from updated folders to put in the cache
authorRobin Appelman <icewind@owncloud.com>
Sun, 17 Jun 2012 00:15:11 +0000 (02:15 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sun, 17 Jun 2012 00:15:11 +0000 (02:15 +0200)
lib/filecache/update.php

index 2e3eb67da0843930657c83819c6d325983b5ffa0..dd77f491ca053afbe22cb2024eefe155bfaba5bf 100644 (file)
@@ -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;