summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-08-09 16:36:16 +0200
committerRobin Appelman <icewind@owncloud.com>2012-08-09 16:36:16 +0200
commitacd8381094693fe3638466de7dc6c50e2783effb (patch)
tree26f3220fc28c2706c1f117bb6845a76a8725c9c4 /lib
parent39814edf81ede7413d98eaff86b183c42b4d8287 (diff)
downloadnextcloud-server-acd8381094693fe3638466de7dc6c50e2783effb.tar.gz
nextcloud-server-acd8381094693fe3638466de7dc6c50e2783effb.zip
fix scanning of archives in some cases
Diffstat (limited to 'lib')
-rw-r--r--lib/filecache/update.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filecache/update.php b/lib/filecache/update.php
index 93b632acb4e..0b5ff8e2446 100644
--- a/lib/filecache/update.php
+++ b/lib/filecache/update.php
@@ -152,8 +152,8 @@ class OC_FileCache_Update{
$size=0;
$cached=OC_FileCache_Cached::get($path,$root);
$cachedSize=isset($cached['size'])?$cached['size']:0;
-
- if($mimetype=='httpd/unix-directory'){
+
+ if($view->is_dir($path.'/')){
if(OC_FileCache::inCache($path,$root)){
$cachedContent=OC_FileCache_Cached::getFolderContent($path,$root);
foreach($cachedContent as $file){