@outside_root_to_404<EOL><INDENT>def get(self, path, content=True, type=None, format=None):<DEDENT>
path = normalize_api_path(path)<EOL>if path:<EOL><INDENT>return self.__get(path, content=content, type=type, format=format)<EOL><DEDENT>if not content:<EOL><INDENT>return base_directory_model('<STR_LIT>')<EOL><DEDENT>extra_content = self._extra_root_dirs()<EOL>rm = self.root_manager<EOL>if rm is None:<EOL><INDENT>root_model = base_directory_model('<STR_LIT>')<EOL>root_model.update(<EOL>format='<STR_LIT>',<EOL>content=extra_content,<EOL>)<EOL><DEDENT>else:<EOL><INDENT>root_model = rm.get(<EOL>path,<EOL>content=content,<EOL>type=type,<EOL>format=format,<EOL>)<EOL>root_model['<STR_LIT:content>'].extend(extra_content)<EOL><DEDENT>return root_model<EOL>
Special case handling for listing root dir.