def shouldExcludeFile(filename, excludes):
    """
    Determines whether a file is in an excluded directory.

    Arguments:
        - filename: filename being tested
        - excludes: array of excluded directory names
    Returns: True if should exclude, False if not.
    """
    for exc in excludes:
        if exc in filename:
            return True
    return False