No I am not changing the name of file, i am copying file as it is to another location.
I have java application which i am running on MAC os, and i am using following
FileFilter filter = new FileFilter() {
public boolean accept(File pathname) {
if (pathname.getAbsolutePath().indexOf(File.separator + "data") != -1) {
return false;
} else if (pathname.getAbsolutePath().indexOf(File.separator + "Logs") != -1) {
return false;
}
return true;
}
};
FileUtils.copyDirectory("source path", "destination path",filter );
While is tried manually copy-paste on mac for same file (plist) that is same as source file with Unix Executable file extension