| Conditions | 8 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import os |
||
| 6 | def __init__(self, files): |
||
| 7 | self.files = files |
||
| 8 | self.roots = set([f for f in files if f.parents == []]) |
||
| 9 | def locationBranchRecurse(image): |
||
| 10 | branch = {} |
||
| 11 | loc = image.location.toString() |
||
| 12 | children = [f for f in files if loc in f.parents] |
||
| 13 | for child in children: |
||
| 14 | branch[child.location.toString()] = locationBranchRecurse(child) |
||
| 15 | return branch |
||
| 16 | self.locationTree = {} |
||
| 17 | for f in self.roots: |
||
| 18 | self.locationTree[f.location.toString()] = locationBranchRecurse(f) |
||
| 19 | |||
| 34 |