/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import java.io.File; import java.net.URI; import java.net.URISyntaxException; import java.util.*; public class GETFILE{ ArrayList<File> fileList = new ArrayList<File>(); scan(aFile, fileList); } }//end main if (files != null) { if(child.isDirectory()){ scan(child, all); }else{ all.add(child); } } } } }