Does anyone know how to display the contents of a directory inside of a menu?

I only want to show a max of 20 items if possable.

a little code would help.

TIA