java

move directory in Java ,convert file to linux,remove CRLF

privatevoid moveFilesFromSourceToDestination(String sourceFolder,String destinationFolder) throws IOException{log.info( “trying move “+sourceFolder+” to “+destinationFolder ); File sFolder = new File(sourceFolder); File dFolder = new File(destinationFolder); for (File file : sFolder.listFiles()){ if (file.isFile()){ File newFile = new File(dFolder.getAbsolutePath() + “/”+file.getName()); moveFile(file,newFile); }elseif (file.isDirectory()){ File newFile = new File(dFolder.getAbsolutePath() + “/”+file.getName()); newFile.mkdir(); moveFilesFromSourceToDestination(file.getAbsolutePath(),newFile.getAbsolutePath()); File oldFile = new File(sFolder.getAbsolutePath() + “/”+file.getName());… Continue reading move directory in Java ,convert file to linux,remove CRLF