示例#1
0
文件: dup.py 项目: apostiglioni/dup
def process_cluster(cluster, transform, validate, action):
    for_each(
        validate(
            transform(copy(cluster)),
            cluster
        ),
        action = action
    )
示例#2
0
文件: dup.py 项目: apostiglioni/dup
def find_files(which, where, action, strict_walk=True):
    for_each(
        which(
            group_by_size_hash_content(
                all_files(where, strict_walk=strict_walk)
            )
        ),
        action = action
    )
示例#3
0
文件: dup.py 项目: apostiglioni/dup
def find_files(which, where, action, strict_walk=True):
    for_each(which(
        group_by_size_hash_content(all_files(where, strict_walk=strict_walk))),
             action=action)
示例#4
0
文件: dup.py 项目: apostiglioni/dup
def process_cluster(cluster, transform, validate, action):
    for_each(validate(transform(copy(cluster)), cluster), action=action)