Destructively indexing files