From de4e4cb6ea9decd756a2c813c8a224df4c92dbd8 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Fri, 3 Jul 2015 14:00:05 +0200
Subject: [PATCH] also dont download existing on fopen when using w+ and wb+

---
 lib/private/files/storage/flysystem.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/private/files/storage/flysystem.php b/lib/private/files/storage/flysystem.php
index 8be8739953..6d8dee1062 100644
--- a/lib/private/files/storage/flysystem.php
+++ b/lib/private/files/storage/flysystem.php
@@ -170,13 +170,13 @@ abstract class Flysystem extends Common {
 					return false;
 				}
 			case 'w':
+			case 'w+':
 			case 'wb':
+			case 'wb+':
 				$useExisting = false;
 			case 'a':
 			case 'ab':
 			case 'r+':
-			case 'w+':
-			case 'wb+':
 			case 'a+':
 			case 'x':
 			case 'x+':
-- 
GitLab