diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 0d63fd46ecca8..19674fc941374 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -54,12 +54,7 @@ public function __construct($arguments) { throw new \InvalidArgumentException('No data directory set for local storage'); } $this->datadir = $arguments['datadir']; - // some crazy code uses a local storage on root... - if ($this->datadir === '/') { - $this->realDataDir = $this->datadir; - } else { - $this->realDataDir = rtrim(realpath($this->datadir), '/') . '/'; - } + $this->realDataDir = rtrim(realpath($this->datadir), '/') . '/'; if (substr($this->datadir, -1) !== '/') { $this->datadir .= '/'; }