public static void main(String args[]){ File file = new File("D:\\music"); File[] files = file.listFiles(); for (int fileInList = 0; fileInList < files.length; fileInList++) { if (file.isDirectory()){ File[] subFolder = file.listFiles(); for (int i=0; i< subFolder.length; i++) { FoldersOnly(new File(files, subFolder[i])); System.out.println(files[fileInList].toString()); } } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)