get_dirs method works