I'm a casual programmer (i.e., I'm no longer a professional, I just program for fun or for my own projects), usually in Python (although I don't think this is a Python-specific question).
I'm writing a program that catalogs CDROMs, and need to go through the directory of the CDROM given the device.
On Windows, I use something like
Is there an equivalent starting point in Linux?
for (root, dirs, files) in os.walk(startpoint):
but no luck.
What does work is
where VOLUMENAME is the name of the mounted CDROM volume; but I need to be able to do this without knowing the volume name.