40
43
yield tree.abspath(subp), subp
42
46
def clean_tree(directory, ignored=False, detritus=False, dry_run=False):
43
48
tree = WorkingTree.open_containing(directory)[0]
44
49
deletables = iter_deletables(tree, ignored=ignored, detritus=detritus)
45
50
delete_items(deletables, dry_run=dry_run)
47
53
def delete_items(deletables, dry_run=False):
48
54
"""Delete files in the deletables iterable"""