GET_SUBDIRS will return all the subdirectories under a given directory. An example: IDL> dirs = get_subdirs('/ys')