make directories a list