summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/dropbox.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-06-27 12:04:11 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-06-27 12:04:33 -0400
commit19f94774fbc72562f2a3280b0cc49fbda89ea48b (patch)
treedd4dc21499b00ee3fcea97d54047c5e354c485ec /apps/files_external/lib/dropbox.php
parentc67ae2e7f1bbb352158728394259c74de11aa989 (diff)
downloadnextcloud-server-19f94774fbc72562f2a3280b0cc49fbda89ea48b.tar.gz
nextcloud-server-19f94774fbc72562f2a3280b0cc49fbda89ea48b.zip
Don't overwrite fake directory stream for Dropbox and Google Drive
Diffstat (limited to 'apps/files_external/lib/dropbox.php')
-rwxr-xr-xapps/files_external/lib/dropbox.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index 6f1a154a122..e3fbb244996 100755
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -33,7 +33,6 @@ class OC_Filestorage_Dropbox extends OC_Filestorage_Common {
$oauth = new Dropbox_OAuth_Curl($params['app_key'], $params['app_secret']);
$oauth->setToken($params['token'], $params['token_secret']);
$this->dropbox = new Dropbox_API($oauth, 'dropbox');
-
}
private function getMetaData($path, $list = false) {
@@ -84,8 +83,8 @@ class OC_Filestorage_Dropbox extends OC_Filestorage_Common {
foreach ($contents as $file) {
$files[] = basename($file['path']);
}
- OC_FakeDirStream::$dirs['dropbox'] = $files;
- return opendir('fakedir://dropbox');
+ OC_FakeDirStream::$dirs['dropbox'.$path] = $files;
+ return opendir('fakedir://dropbox'.$path);
}
return false;
}