Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; import java.util.Vector; public class Main { public static Vector<String> loadScriptsFolder(String path) { File fileScript = new File(path); Vector<String> vec = new Vector(); File files[] = fileScript.listFiles(); for (int i = 0; i < files.length; i++) { if (files[i].isDirectory()) vec.add(files[i].getName()); } return vec; } }