title: Copy all subfolders from one to another except some subfolders in java?
body: <p>I want to copy all subfolders from input folder to outputDir except some subfolders. The method i am using for copy is here. but i don't know how to filter the subfolders. </p>
  
  <pre><code>public static void copyDirectory(String inputFolder, String outputDir) {
              File source = new File(inputFolder);
              File desc = new File(outputDir);
              try {
                  FileUtils.copyDirectory(source, desc);
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
  </code></pre>