The root of a storage always exists

This commit is contained in:
Robin Appelman 2015-10-05 17:50:28 +02:00 committed by Morris Jobke
parent 5bf476efd0
commit 33eb13e415
1 changed files with 3 additions and 0 deletions

View File

@ -220,6 +220,9 @@ class Availability extends Wrapper {
/** {@inheritdoc} */ /** {@inheritdoc} */
public function file_exists($path) { public function file_exists($path) {
if ($path === '') {
return true;
}
$this->checkAvailability(); $this->checkAvailability();
try { try {
return parent::file_exists($path); return parent::file_exists($path);