File writes are checked before patch apply