def read_index(self):
if not isinstance(self.tree, dict):<EOL><INDENT>self.tree = dict()<EOL><DEDENT>self.tree.clear()<EOL>for path, metadata in self.read_index_iter():<EOL><INDENT>self.tree[path] = metadata<EOL><DEDENT>
Reads the index and populates the directory tree