'Add a file to the model.'

def add_file(self, path):

    dirname = utils.dirname(path)
    dir_entries = self.dir_entries
    try:
        parent = dir_entries[dirname]
    except KeyError:
        parent = dir_entries[dirname] = self.create_dir_entry(dirname)
    row_items = self.create_row(path, False)
    parent.appendRow(row_items)
