Migrate scripts from spinal.walk_generator to spinal.walk.

This commit is contained in:
voussoir 2021-05-17 17:02:01 -07:00
parent 0257387d92
commit 71a66e4b54
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -262,7 +262,7 @@ def recursive_print_node(node, depth=0, use_html=False, header=None, footer=None
def pathtree_argparse(args):
from voussoirkit import safeprint
from voussoirkit import spinal
paths = spinal.walk_generator()
paths = spinal.walk()
paths = [{'path': path.absolute_path, 'size': path.size} for path in paths]
tree = from_paths(paths, '.')
recursive_get_size(tree)