def return_file_names_to_query(self, file_names: list):
        """Return the file names for current execution.

        Args:
            file_names (list): list of file
            prefix_to_search (str): file name prefix to search

        Returns:
            list: list of files
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            file_names_to_query = []
            for iterator_name in self.iterators_name:
                for file in file_names:
                    if iterator_name in file and "epoch" not in file and "failed" not in file:
                        file_names_to_query.append(file)
            applogger.info("{}(method={}) : {} ({}) : Number of files found to ingest to sentinel are {}".format(
                consts.LOGS_STARTS_WITH,
                __method_name,
                consts.NETSKOPE_AZURE_STORAGE_TO_SENTINEL,
                self.nskp_data_type_for_logging,
                len(file_names_to_query)
                )
            )
            return file_names_to_query
        except Exception as error:
            applogger.error(
                "{}(method={}) : {} ({}) : Error while searching file names, Error-{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.NETSKOPE_AZURE_STORAGE_TO_SENTINEL,
                    self.nskp_data_type_for_logging,
                    error,
                )
            )
            raise NetskopeException()
Return the file names for current execution.

        Args:
            file_names (list): list of file
            prefix_to_search (str): file name prefix to search

        Returns:
            list: list of files
        
Solutions/Netskopev2/Data Connectors/NetskopeDataConnector/StorageToSentinel/netskope_azure_storage_to_sentinel.py