I am using the following method to transfer files between two directories using java.
FileUtils.copyDirectory(sourceDir, destinationDir,fileFilter,false);
But if a file with the same name is also found in the destination directory, the file from source overwrites it. What I want is to exclude those files which also exist in destination and copy rest of them, ultimately preventing overwriting..