summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/swift.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-28 15:34:15 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-28 15:34:15 +0100
commitc9c919da5738f963247307ca3878e06beff87ade (patch)
tree6b4a0c381fef34589559634555a653a57821002d /apps/files_external/lib/swift.php
parentbca5ce724e4fcecfe89da8839878c4da6f102e35 (diff)
downloadnextcloud-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/swift.php')
-rw-r--r--apps/files_external/lib/swift.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index bd1f4c572a6..cbf2007052b 100644
--- a/apps/files_external/lib/swift.php
+++ b/apps/files_external/lib/swift.php
@@ -371,7 +371,7 @@ class SWIFT extends \OC\Files\Storage\Common{
$subContainers=$this->getSubContainers($container);
$files=array_merge($files, $subContainers);
$id=$this->getContainerName($path);
- \OC_FakeDirStream::$dirs[$id]=$files;
+ \OC\Files\Stream\Dir::register($id, $files);
return opendir('fakedir://'.$id);
}
@@ -465,7 +465,7 @@ class SWIFT extends \OC\Files\Storage\Common{
case 'c':
case 'c+':
$tmpFile=$this->getTmpFile($path);
- OC_CloseStreamWrapper::$callBacks[$tmpFile]=array($this, 'writeBack');
+ \OC\Files\Stream\Close::registerCallback($tmpFile, array($this, 'writeBack'));
self::$tempFiles[$tmpFile]=$path;
return fopen('close://'.$tmpFile, $mode);
}