summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/file.php
diff options
context:
space:
mode:
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()) {