public function getDirList(): array
    {
        if (!$this->hasDirs()) {
            return [];
        }
        $path = \str_replace('\\', '/', \trim($this->dirs));
        // Drop any leading and trailing "/"s.
        $path = \trim($path, '/');
        // Drop pointless consecutive "/"s.
        while (false !== \strpos($path, '//')) {
            $path = \str_replace('//', '/', $path);
        }
        if ('' !== $path) {
            return \explode('/', $path);
        }
        return [];
    }