'Add a directory entry to the model.'

def add_directory(self, parent, path):

    row_items = self.create_row(path, is_dir=True)
    name_item = row_items[0]
    name_item.setIcon(self.dir_icon)
    parent.appendRow(row_items)
    return name_item
