Why am I losing files when packaging? (4.15)

Could you point me to where in the engine this happens? I’d like to make a list of directory names to avoid.