From 33eb13e415e73ee12c20aa39e3c2a0ce63684809 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Mon, 5 Oct 2015 17:50:28 +0200
Subject: [PATCH] The root of a storage always exists

---
 lib/private/files/storage/wrapper/availability.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/files/storage/wrapper/availability.php b/lib/private/files/storage/wrapper/availability.php
index 37319a8f7d1..d6ce78f6e44 100644
--- a/lib/private/files/storage/wrapper/availability.php
+++ b/lib/private/files/storage/wrapper/availability.php
@@ -220,6 +220,9 @@ class Availability extends Wrapper {
 
 	/** {@inheritdoc} */
 	public function file_exists($path) {
+		if ($path === '') {
+			return true;
+		}
 		$this->checkAvailability();
 		try {
 			return parent::file_exists($path);
-- 
GitLab