Discovering the URIs of all local files in directory

Hi. I’ve got a bunch of local files in a subdirectory of the media folder, I’d like to randomly select one of the URIs from inside that directory for playback, but I’m struggling to ascertain a list of all the uris for the files. Can someone point me in the right direction please?

Get a list of files in YOUR_SUBDIRECTORY:

mpc ls "Local media/YOUR_SUBDIRECTORY"

Randomly add one of the files from YOUR_SUBDIRECTORY to the tracklist:

mpc ls "Local media/YOUR_SUBDIRECTORY" | shuf -n 1 | mpc add