@staticmethod
    def IsMatchCSVFileTables(FileEntries):

        # check if the file count and the expected number of tables match
        if (len(LoadConstants.EXPECTED_TABLES) != len(FileEntries)):
            return false;

        # for each expected table name, check if it is present 
        # in the list of file entries
        for TableName in LoadConstants.EXPECTED_TABLES:
            TableExists = False
            for FileEntry in FileEntries:
                if TableName == FileEntry.TargetTable:
                    TableExists = True
                    break
                
            # if the table name did not exist in list of CSV files, 
            # this check fails.
            if not TableExists:
                return False

        return True
This method is called from everywhere in the code which accesses the database.
dataset/ETHPy150Open VisTrails/VisTrails/contrib/pc3/info/ipaw/pc3/LoadAppLogic.py/LoadAppLogic.IsMatchCSVFileTables--crossover with--dataset/ETHPy150Open saeschdivara/ArangoPy/arangodb/api.py/Client.instance