def METHOD_NAME(self, path):
    self.path = path
    self.ui.lineEdit_Path.setText(self.path)
    name = os.path.basename(os.path.normpath(self.path))
    self.ui.lblName.setText(name)
    self.ui.lblNewPath.setVisible(not os.path.isdir(self.path))