def __make_tree(self, wd, root="<STR_LIT>", create=True):
d1 = "<STR_LIT>" % (wd, root)<EOL>t1 = FSTree(d1)<EOL>d2 = "<STR_LIT>" % d1<EOL>t2 = t1.add(d2)<EOL>if create:<EOL><INDENT>hdfs.mkdir(d2)<EOL><DEDENT>for t, d, bn in ((t1, d1, "<STR_LIT>"), (t2, d2, "<STR_LIT>")):<EOL><INDENT>f = "<STR_LIT>" % (d, bn)<EOL>if create:<EOL><INDENT>hdfs.dump(self.data, f, mode="<STR_LIT:wb>")<EOL><DEDENT>t.add(f, <NUM_LIT:0>)<EOL><DEDENT>return t1<EOL>
d1
|-- d2
|   `-- f2
`-- f1