def get_filenames(self) -> List[str]:
        """Returns all filenames in the dataset."""
        if hasattr(self.dataset, "get_filenames"):
            return self.dataset.get_filenames()

        list_of_filenames = []
        for index in range(len(self)):
            fname = self.index_to_filename(self.dataset, index)
            list_of_filenames.append(fname)
        return list_of_filenames
Returns all filenames in the dataset.
lightly/data/dataset.py