def add_policy(self, policy):
        if isinstance(policy, QueuePolicy):
            self.queue_policies.append(policy)
        else:
            raise TypeError('Argument not a QueuePolicy.')
Determines if a file entry for a path specification exists.
dataset/ETHPy150Open slimta/python-slimta/slimta/queue/__init__.py/Queue.add_policy--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/tsk_partition_file_system.py/TSKPartitionFileSystem.FileEntryExistsByPathSpec