find ${cd} -iname DIRECTORY -type d -maxdepth 1 -printf '%f'
also make a wrapper function to access directories on cd so that it'll access case insensitive dirs
added the first part to cvs
Did you ever finish this? Would this be possible to use for on-disk structures? I have noticed that quite a few people have been copying their ut2003 CD files to disk from within Windows, which of course does not preserve the case, so emerge fails.
cdrom_get_cds is now in eutils.eclass ebuilds just need to be ported ;)