Unfortunately it didn't work. I followed the procedure one's supposed to: unlocked the phone, connected the cable to the USB-c port, changed the "mode" on the phone's screen to file transfer over USB, ...
Android phones have used various charger types, from Mini-USB to the now-ubiquitous USB-C. Here's a brief history of the cables you've got stuffed in a drawer.