def initFromDict(self, adict, **kwargs):
<EOL>a_flat  = C_stree.flatten(adict)<EOL>l_dir   = []<EOL>for k, v in a_flat.items():<EOL><INDENT>l_dir.append(k.split('<STR_LIT:/>')[<NUM_LIT:1>:-<NUM_LIT:1>])<EOL><DEDENT>l_dir = [list(x) for x in set(tuple(x) for x in l_dir)]<EOL>l_path  = ['<STR_LIT:/>' + '<STR_LIT:/>'.join(p) for p in l_dir]<EOL>l_path.sort()<EOL>for dir in l_path: self.mkdir(dir)<EOL>for file,contents in a_flat.items(): self.touch(file, contents)<EOL>
Initialize self from dictionary.
:param adict:
:return: