public function isDirectory($key) { $this->ensureDirectoryExists($this->directory, $this->create); return $this->isDir($this->computePath($key)); }