DFSTestUtil util = new DFSTestUtil("TestFTPFileSystem", 20, 3, 1024 * 1024);
localFs.setWorkingDirectory(workDir);
Path localData = new Path(workDir, "srcData");
Path remoteData = new Path("srcData");
util.createFiles(localFs, localData.toUri().getPath());
boolean dataConsistency = util.checkFiles(localFs, localData.getName());
assertTrue("Test data corrupted", dataConsistency);
// Copy files and directories recursively to FTP file system.