summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/wrapper
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-10-05 17:50:28 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-10-29 11:21:50 +0100
commit33eb13e415e73ee12c20aa39e3c2a0ce63684809 (patch)
treee794bf67122b2b0f21bbdf0ded3d7c611aa9ab2d /lib/private/files/storage/wrapper
parent5bf476efd07d8f6b771f3cbf8ff10e617536263b (diff)
downloadnextcloud-server-33eb13e415e73ee12c20aa39e3c2a0ce63684809.tar.gz
nextcloud-server-33eb13e415e73ee12c20aa39e3c2a0ce63684809.zip
The root of a storage always exists
Diffstat (limited to 'lib/private/files/storage/wrapper')
-rw-r--r--lib/private/files/storage/wrapper/availability.php3
1 files changed, 3 insertions, 0 deletions
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);