summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filecache.php')
-rw-r--r--lib/filecache.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index 9ec307cc812..a94349e19cb 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -564,9 +564,13 @@ class OC_FileCache{
}
if(!$view->is_readable($path)) return; //cant read, nothing we can do
clearstatcache();
- $stat=$view->stat($path);
$mimetype=$view->getMimeType($path);
- $writable=$view->is_writable($path);
+ $stat=$view->stat($path);
+ if($mimetype=='httpd/unix-directory'){
+ $writable=$view->is_writable($path.'/');
+ }else{
+ $writable=$view->is_writable($path);
+ }
$stat['mimetype']=$mimetype;
$stat['writable']=$writable;
if($path=='/'){