}
Thread.sleep(SLEEP);
{
CmdPwd cmdPwd = new CmdPwd();
assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(cmdPwd));
}
Thread.sleep(SLEEP);
{
CmdCwd cmdCwd = new CmdCwd(FtpTestConfig.TEST_FOLDER);
assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdCwd));
}
Thread.sleep(SLEEP);
{
CmdPwd cmdPwd = new CmdPwd();
assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(cmdPwd));
assertEquals(FtpTestConfig.TEST_FOLDER, cmdPwd.getCurrentPath());
}
Thread.sleep(SLEEP);
String folderName = "" + agentId;
String folder1Name = folderName.substring(0, 1);
log.info("FOLDER 1 NAME: [" + folder1Name + "]");
{
CmdCwd cmdCwd = new CmdCwd(folder1Name);
assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdCwd));
}
Thread.sleep(SLEEP);
String folder2Name = folderName.substring(1, 2);
{
CmdCwd cmdCwd = new CmdCwd(folder2Name);
assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdCwd));
}
Thread.sleep(SLEEP);
{
CmdMkd cmdMkd = new CmdMkd(folderName);
assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(cmdMkd, FtpConst.Replyes.REPLY_257, 3));
}
Thread.sleep(SLEEP);
{
CmdCwd cmdCwd = new CmdCwd(folderName);
assertEquals(FtpConst.Replyes.REPLY_250, client.executeCommand(cmdCwd));
}
Thread.sleep(SLEEP);
String folderPath = FtpTestConfig.TEST_FOLDER + "/" + folder1Name + "/" + folder2Name + "/" + folderName;
log.info("FOLDER PATH: [" + folderPath + "]");
{
CmdPwd cmdPwd = new CmdPwd();
assertEquals(FtpConst.Replyes.REPLY_257, client.executeCommand(cmdPwd));
assertEquals(folderPath, cmdPwd.getCurrentPath());
}
Thread.sleep(SLEEP);
for (int i1 = 0; i1 < itemsCount; i1++)