fix for webdav when having additional storage backends mounted

This commit is contained in:
Robin Appelman 2012-03-07 15:44:46 +01:00
parent fb88bdba69
commit 9f01533710
1 changed files with 2 additions and 2 deletions

View 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);