def is_directory_match(targets, directory):
    """For each string in target, see if it is a substring of directory."""
    for target in targets:
        if target not in directory:
            return False
    return True