public function downloadFromDir(
        LibraryType $library,
        DirectoryItem $item,
        string $localFilePath,
        string $dir,
        int $reuse = 1
    ): Response {
        if (is_readable($localFilePath)) {
            throw new Exception('File already exists');
        }

        $downloadUrl = $this->getDownloadUrl($library, $item, $dir, $reuse);

        return $this->client->request('GET', $downloadUrl, ['save_to' => $localFilePath]);
    }