private void initializeRemoteTargetDirectory() { JwFtpClient logFtpClient = null; try { logFtpClient = AcFtpClient.getLogFtpClient(); JwList<String> v = logFtpClient.getDirectoryNames(getTargetRootPath()); if (!v.contains(getLocalHostname())) logFtpClient.createDir(getTargetLogPath()); } finally { if (logFtpClient != null) logFtpClient.close(); } }
private JwList<String> getMissingFilenames( JwList<String> sourceFilenames, JwList<String> targetFilenames) { JwList<String> v = new JwList<String>(); for (String e : sourceFilenames) if (!targetFilenames.contains(e)) v.add(e); return v; }