public function getType() { if ($this->storage->isDir($this->key)) { return self::TYPE_DIR; } return pathinfo($this->key, PATHINFO_EXTENSION); }