@Override protected Boolean doInBackground() throws Exception { File targetDirFile = new File(this.targetDir); Vector<File> toCopy = new Vector<File>(); if (this.useWebsearch) { getFilesFromWebSearch(toCopy); } else { getFilesFromSlaveDir(toCopy); } FileSyncerUtils.doCopying(toCopy, targetDirFile, this.outputArea); return true; }