protected function writeGoogleDriveFolderData(
        OutputInterface $output,
        \Google_Service_Drive $drive,
        \Google_Service_Drive_DriveFile $folder
    ) {
        $output->writeln('<info>The URL is a Google Drive folder</info>');
        $output->writeln('Name: '.$folder->getName());
        $output->writeln('Content:');

        $pageToken = null;

        do {
            $children = $drive->files->listFiles([
                'pageSize' => 1000,
                'pageToken' => $pageToken,
                'q' => "'{$folder->getId()}' in parents",
                'fields' => 'nextPageToken, files(id,name,mimeType)'
            ]);

            foreach ($children as $child) {
                /** @var \Google_Service_Drive_DriveFile $child */
                $output->writeln(
                    ' - A '.($child->getMimeType() === GoogleAPIClient::MIME_TYPE_DRIVE_FOLDER ? 'folder' : 'file')
                    .'. Name: '.$child->getName()
                );
            }

            $pageToken = $children->getNextPageToken();
        } while ($pageToken);
    }