diff options
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) |