code: def set_root_path(self, root_path):
          
          self.root_path = root_path
          self.install_model()
          index = self.fsmodel.setRootPath(root_path)
          self.proxymodel.setup_filter(self.root_path, [])
          self.setRootIndex(self.proxymodel.mapFromSource(index))
docs: Set root path