String resultpath = ph.getProperty("archive.web.dir");
String thefile = ph.getProperty("archive.path") + '/' + jobfilename;
String finalpath = ProteoCachePropertyHelperManager.getLocalPath() + resultpath + '/' + jobfilename;
+ if (Files.isReadable(Paths.get(finalpath))) {
+ Files.delete(Paths.get(finalpath));
+ }
if (Files.isReadable(Paths.get(thefile))) {
Files.copy(Paths.get(thefile), Paths.get(finalpath));
return resultpath + '/' + jobfilename;