is there a way to get the names of all the folders in a directory ?

any help is appreciated on this topic