def METHOD_NAME(source, zipf, ignore_set):
    for filename in os.listdir(source):
        if filename in ignore_set:
            continue
        path = p(source, filename)
        target_path = filename
        if os.path.isdir(path):
            copy_dir_into_zip(path, target_path, zipf)
        else:
            zipf.write(path, target_path)