If I log onto someone else’s WiFi on my computer, would they be able to see my personal files?
Normally they can not look inside your computer.

Just to make sure that is the case,

open system preferences > sharing 

and make sure all items are disabled.