def _on_path_loaded(self, path):
        if os.path.normpath(path) != self._root_path:
            return
        try:
            self.setModel(self._fs_model_proxy)
            file_root_index = self._fs_model_source.setRootPath(
                self._root_path)
            root_index = self._fs_model_proxy.mapFromSource(file_root_index)
            self.setRootIndex(root_index)
            if not os.path.ismount(self._root_path):
                self.expandToDepth(0)
            if self._hide_extra_colums:
                self.setHeaderHidden(True)
                for i in range(1, 4):
                    self.hideColumn(i)
            if self._path_to_select:
                self.select_path(self._path_to_select)
                self._path_to_select = None
        except __HOLE__:
            # wrapped C/C++ object of type FileSystemTreeView has been deleted
            return
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/widgets/filesystem_treeview.py/FileSystemTreeView._on_path_loaded