diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-18 13:15:42 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-18 13:15:42 -0400 |
commit | 16dfc8df20c6befeed423217a2e0f5ae59b5a04d (patch) | |
tree | 722ff18b111f6ab2fc11fffa46e78889bd2d5708 /parse/dir_map.py | |
parent | 652a57b5a53e41e585c7e0d10601c807ba08c36f (diff) |
Use smarter defaults which can handle data from Bjorns scripts.
Diffstat (limited to 'parse/dir_map.py')
-rw-r--r-- | parse/dir_map.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/parse/dir_map.py b/parse/dir_map.py index 601dd3b..a8d2a83 100644 --- a/parse/dir_map.py +++ b/parse/dir_map.py | |||
@@ -56,6 +56,9 @@ class DirMap(object): | |||
56 | 56 | ||
57 | remove_childless2(self.root) | 57 | remove_childless2(self.root) |
58 | 58 | ||
59 | def is_empty(self): | ||
60 | return not len(self.root.children) | ||
61 | |||
59 | def write(self, out_dir): | 62 | def write(self, out_dir): |
60 | def write2(path, node): | 63 | def write2(path, node): |
61 | out_path = "/".join(path) | 64 | out_path = "/".join(path) |