I need to display list of directories in GSP pages. Can you please guide me how to pass this array to GSP.
Here is my below sample code.
File dir = new File(petl_dir_path)
def list= []
dir.eachDir{ list << it.name }
Please guide
Thanks