Retrieving a List of files with no subfolders to the selected folder (static)
import org.pwss.util.PWSSDirectoryNavUtil;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.ExecutionException;
public class Main {
public static void main(String[] args) throws IOException,
ExecutionException,
InterruptedException {
File selectedFolder =
new File("C:\\Program Files (x86)\\Battle.net");
List noSubfolderList = PWSSDirectoryNavUtil
.GetSelectedFolderWithoutSubFolders(selectedFolder);
noSubfolderList
.forEach(file -> System.out.println(file.getAbsolutePath()));
}
}
org.pwss.util.PWSSDirectoryNavUtil