예제 #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)