Tag Archives: Remove CRLF

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 … Continue reading

Posted in java | Tagged , ,