The below code gives a NullPointerException when i try to include wildcards on the File command. If i leave off the \\*.zip it will work fine. How can i filter this command?
String dir = "C:\\parentdir\\subdir\\*.zip";
// Get list of files in a give directory
File fname = new File(dir);
String file_list = fname.list();