Eclectic Media Git ptree / 911809f
Fixed a bug where it would fail if no exclude path UPDATES TO V0.2.1 Ariana Giroux 1 year, 6 months ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
77
88 setup(
99 name='ptree',
10 version='0.2',
10 version='0.2.1',
1111 description='Simple python file tree visualizer with long level truncation',
1212 # url='http://gitlab.com/eclectickmediasolutions/pingstats',
1313 author='Ariana Giroux',
9292 if parsed.truncate_files:
9393 parsed.print_files = True
9494
95 exclude_path = parsed.exclude_paths.split(',')
95 if parsed.exclude_paths is not None:
96 exclude_path = parsed.exclude_paths.split(',')
97 else:
98 exclude_path = None
9699
97100 if isdir(parsed.path):
98101 tree(parsed.path, ' ', parsed.print_files, exclude_path, parsed.truncate_files, parsed.truncate_directories)