Java tutorial
//package com.java2s; import java.io.File; import java.net.URI; public class Main { public static File[] getFolderFiles(String aPath) { try { File thisFile = new File(aPath); return thisFile.listFiles(); } catch (Exception exp) { System.out.println("Error listing file names: " + exp); } return null; } public static File[] getFolderFiles(URI aPathURI) { try { File thisFile = new File(aPathURI); return thisFile.listFiles(); } catch (Exception exp) { System.out.println("Error listing file names: " + exp); } return null; } }