Swapping out the fields of the FileEntry is dangerous, since there may be other information attached to the FileEntry that would be stale. It would be better to completely replace this entry.