title: File tranfer using SCP protocol
body: <p>Need a Java program to copy multiple files from local windows to Linux server and vice versa(upload and download) .I have written a utility which works for single file transfer. But when it comes for the multiple file while listing the files in a directory. The files are not getting searched out, due to the issue directory separator. In windows it is '\' where as Linux '/'. Is there any free library which helps to do so?</p>
  
  <p>It should be using SCP protocol. here is the snippet makes the main issue for me:</p>
  
  <pre><code>String files;
  System.out.println("files=");
  System.out.println();
  File folder = new File(path);
  System.out.println("folder="+folder);
  File[] listOfFiles = folder.listFiles();
  
  for (int i = 0; i &lt; listOfFiles.length; i++) 
  {
  
      if (listOfFiles[i].isFile()) 
      {
          files = listOfFiles[i].getName();
          System.out.println("hello here are files");
          System.out.println(files);
      }
  }
  </code></pre>