catch (Exception exc)
{
log.info("Unhandled exception. " + exc.getMessage(), exc);
}
FtpSystemCoder systemCoder =
FtpSystemCoderManager.getSystemCoder(clientSession().getFtpServer().getConfiguration());
reply(FtpConst.Replyes.REPLY_125);
boolean isNeedExtendedInfo = (commandName.equals(FtpConst.Commands.CMD_LIST)) ? true : false;
try
{
String encoding = clientSession().getFtpServer().getConfiguration().getClientSideEncoding();
for (int i = 0; i < items.size(); i++)
{
FtpFileInfo curFileInfo = items.get(i);
String curSerialized = "";
if (isNeedExtendedInfo)
{
curSerialized = systemCoder.serializeFileInfo(curFileInfo);
}
else
{
curSerialized = curFileInfo.getName();
}