public void recursiveDelete(File file) {
		File[] files = file.listFiles();
		if (files != null) {
			for (File each : files) {
				recursiveDelete(each);
			}
		}
		if (!(file.equals(this.targetFtpDirectory) || file.equals(this.targetLocalDirectory))) {
			file.delete();
		}
	}
Embedded FTP Server for test cases; exposes an associated session factory as a @Bean.

@author Artem Bilan
@author Gary Russell
@since 3.0
spring-xd-shell/src/test/java/org/springframework/xd/shell/util/TestFtpServer.java