protected function normalizeObject(array $object)
	{
		if (\substr($object['name'], -1) === '/') {
			return [
				'path' => $this->removePathPrefix(\trim($object['name'], '/')),
				'type' => 'dir',
			];
		}

		$result = ['type' => 'file'];
		$normalised = Util::map($object, static::$resultMap);
		$normalised['path'] = $this->removePathPrefix($normalised['path']);

		return \array_merge($result, $normalised);
	}