FileObject file = null;
try {
file = session.getFileSystemView().getFileObject(parsedArg.getFile());
if(file != null && file.doesExist()) {
FileFormater formater = new MLSTFileFormater((String[])session.getAttribute("MLST.types"));
session.write(FtpReplyUtil.translate(session, request, context, FtpReply.REPLY_250_REQUESTED_FILE_ACTION_OKAY, "MLST", formater.format(file)));
} else {
session.write(FtpReplyUtil.translate(session, request, context, FtpReply.REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS, "MLST", null));
}
}
catch(FtpException ex) {