]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix for webdav when having additional storage backends mounted
authorRobin Appelman <icewind@owncloud.com>
Wed, 7 Mar 2012 14:44:46 +0000 (15:44 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 7 Mar 2012 14:44:46 +0000 (15:44 +0100)
lib/connector/sabre/directory.php

index bb03851e39d7484db4c6a0411bdcc6b9528ef261..cc37bf22d5dae2e15257e893b8b0a348ebcfda80 100644 (file)
@@ -73,8 +73,8 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
 
                $nodes = array();
                // foreach(scandir($this->path) as $node) if($node!='.' && $node!='..') $nodes[] = $this->getChild($node);
-               if( OC_Filesystem::is_dir($this->path)){
-                       $dh = OC_Filesystem::opendir($this->path);
+               if( OC_Filesystem::is_dir($this->path . '/')){
+                       $dh = OC_Filesystem::opendir($this->path . '/');
                        while(( $node = readdir($dh)) !== false ){
                                if($node!='.' && $node!='..'){
                                        $nodes[] = $this->getChild($node);