Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-14 16:25:52 +0300
committerRobin Appelman <icewind@owncloud.com>2015-04-14 16:25:52 +0300
commit308af8b909822b1d1e3b601061d56d9e34585dff (patch)
treedc2066acff0cc90d43b33459f58fe1323488ff13 /lib/private/connector/sabre/file.php
parent2fd44dbde44c3540d664ade0df277553e7759186 (diff)
pass a stream to the tests
Diffstat (limited to 'lib/private/connector/sabre/file.php')
-rw-r--r--lib/private/connector/sabre/file.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index bc4535657dc..8d739167f8f 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -82,12 +82,6 @@ class File extends Node implements IFile {
* @return string|null
*/
public function put($data) {
- if (is_string($data)) {
- $stream = fopen('php://temp', 'r+');
- fwrite($stream, $data);
- fseek($stream, 0);
- $data = $stream;
- };
try {
$exists = $this->fileView->file_exists($this->path);
if ($this->info && $exists && !$this->info->isUpdateable()) {