title: how to copy directory structure without actually copying the content into another directory
body: <p>I want to copy the directory structure without copying the content/files. I want to copy only folder structure.
  I have written a sample program but it is also copying the content/files also.</p>
  
  <pre><code>   import java.io.*;
     import java.nio.channels.*;
  
     @SuppressWarnings("unused")
     public class CopyDirectory{
      public static void main(String[] args) throws IOException{
          CopyDirectory cd = new CopyDirectory();
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          String source = "C:\\abcd\\Documents\\1";
          File src = new File(source);        
          String destination = "C:\\abcd\\Documents\\2";
          File dst = new File(destination);
          cd.copyDirectory(src, dst);
          }
  
      public void copyDirectory(File srcPath, File dstPath) throws IOException{
          if (srcPath.isDirectory())
          {
              if (!dstPath.exists())
              {
                  dstPath.mkdir();
              }
  
              String files[] = srcPath.list();
              for(int i = 0; i &lt; files.length; i++)
              {
                  System.out.println("\n"+files[i]);
                  copyDirectory(new File(srcPath, files[i]), new File(dstPath, files[i]));
              }
          }
  
          System.out.println("Directory copied.");
      }
     }
  </code></pre>
  
  <p>I am struck at this point.
  Thank you.</p>