This change should be applied to `addFile` and `addFileWithEntry` BTW.