Generate menu from files and directories