{
reply(String.format(FtpConst.Replyes.REPLY_550, srcPath));
return;
}
FtpConfig ftpConfig = clientSession().getFtpServer().getConfiguration();
boolean replaceForbiddenChars =ftpConfig.isReplaceForbiddenChars();
try
{
Session curSession = clientSession().getSession(newPath.get(0));
Node parentNode = curSession.getRootNode();
for (int i = 1; i < newPath.size(); i++)
{
String curPathName = newPath.get(i);
if (replaceForbiddenChars)
{
curPathName = FtpTextUtils.replaceForbiddenChars(curPathName, ftpConfig.getForbiddenChars(), ftpConfig.getReplaceChar());
}
if (parentNode.hasNode(curPathName))
{
parentNode = parentNode.getNode(curPathName);