diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-01-28 15:34:15 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-01-28 15:34:15 +0100 |
commit | c9c919da5738f963247307ca3878e06beff87ade (patch) | |
tree | 6b4a0c381fef34589559634555a653a57821002d /apps/files_external/lib/dropbox.php | |
parent | bca5ce724e4fcecfe89da8839878c4da6f102e35 (diff) | |
download | nextcloud-server-c9c919da5738f963247307ca3878e06beff87ade.tar.gz nextcloud-server-c9c919da5738f963247307ca3878e06beff87ade.zip |
Move streamwrappers to seperate files and put them in a namespace
Diffstat (limited to 'apps/files_external/lib/dropbox.php')
-rwxr-xr-x | apps/files_external/lib/dropbox.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php index 9223b4ca87b..11644e4a2c8 100755 --- a/apps/files_external/lib/dropbox.php +++ b/apps/files_external/lib/dropbox.php @@ -114,7 +114,7 @@ class Dropbox extends \OC\Files\Storage\Common { foreach ($contents as $file) { $files[] = basename($file['path']); } - \OC_FakeDirStream::$dirs['dropbox'.$path] = $files; + \OC\Files\Stream\Dir::register('dropbox'.$path, $files); return opendir('fakedir://dropbox'.$path); } return false; @@ -232,7 +232,7 @@ class Dropbox extends \OC\Files\Storage\Common { $ext = ''; } $tmpFile = \OC_Helper::tmpFile($ext); - \OC_CloseStreamWrapper::$callBacks[$tmpFile] = array($this, 'writeBack'); + \OC\Files\Stream\Close::registerCallback($tmpFile, array($this, 'writeBack')); if ($this->file_exists($path)) { $source = $this->fopen($path, 'r'); file_put_contents($tmpFile, $source); |