Which directories does WordPress attempt to create when updating core and installing plugins?

I think it’s wp-content/upgrade plus it overwrites or creates new files for whatever you’re actually updating as part of the process.