diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-03-07 15:44:46 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-03-07 15:44:46 +0100 |
commit | 9f015337102193ae7cff59b47c577f15c05259c4 (patch) | |
tree | 77e505157271d046bfa0e3ec65a7dd49d180326e /lib/connector/sabre/directory.php | |
parent | fb88bdba69443e81f8bed5172510b4308897ae47 (diff) | |
download | nextcloud-server-9f015337102193ae7cff59b47c577f15c05259c4.tar.gz nextcloud-server-9f015337102193ae7cff59b47c577f15c05259c4.zip |
fix for webdav when having additional storage backends mounted
Diffstat (limited to 'lib/connector/sabre/directory.php')
-rw-r--r-- | lib/connector/sabre/directory.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php index bb03851e39d..cc37bf22d5d 100644 --- a/lib/connector/sabre/directory.php +++ b/lib/connector/sabre/directory.php @@ -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); |