'Check if is an output path for this job or a file in the an
output\'s extra files path.'

def __is_output_dataset_path(self, job, path):

    da_lists = [job.output_datasets, job.output_library_datasets]
    for da_list in da_lists:
        for job_dataset_association in da_list:
            dataset = job_dataset_association.dataset
            if (not dataset):
                continue
            if (os.path.abspath(dataset.file_name) == os.path.abspath(path)):
                return True
            elif util.in_directory(path, dataset.extra_files_path):
                return True
    return False
