summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-29 14:14:56 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-29 14:14:56 +0100
commit1ce911d2f994d105660598ce518b02238502258f (patch)
tree9ce11fbc20388c2c9e02506e7cfafc0297fc90fd
parentb840fc7c5896cc638d2ada2c6315e3852b55405e (diff)
parent33eb13e415e73ee12c20aa39e3c2a0ce63684809 (diff)
downloadnextcloud-server-1ce911d2f994d105660598ce518b02238502258f.tar.gz
nextcloud-server-1ce911d2f994d105660598ce518b02238502258f.zip
Merge pull request #19592 from owncloud/availability-root-always-exists
The root of a storage always exists
-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);