def is_excluded(path, dirs):
    """
    if path is excluded in list of dirs/files

    :param path: path to check for exclude
    :param dirs: list of excludes
    :return: Boolean
    """
    for directory in dirs:
        if path.startswith(directory):
            return True
    return False