def get_filenames(self) -> List[str]:
        """Downloads the list of filenames from the server.

        This is an expensive operation, especially for large datasets.

        Returns:
            Names of files in the current dataset.

        :meta private:  # Skip docstring generation
        """
        filenames_on_server = list(
            utils.paginate_endpoint(
                self._mappings_api.get_sample_mappings_by_dataset_id,
                page_size=25000,
                dataset_id=self.dataset_id,
                field="fileName",
            )
        )
        return filenames_on_server
Downloads the list of filenames from the server.

        This is an expensive operation, especially for large datasets.

        Returns:
            Names of files in the current dataset.

        :meta private:  # Skip docstring generation
        
lightly/api/api_workflow_client.py