handler.getServer().getStoreObjects()[0];
if(command.toLowerCase().startsWith("set ftproot ")) {
String temp = "";
temp = command.substring("set ftproot ".length());
ApplicationConfiguration appConfig = ftpqs.getConfig().getApplicationConfiguration();
File root = new File(temp);
if(root.canRead() && root.isDirectory()) {
if(appConfig==null)
appConfig = new ApplicationConfiguration();
appConfig.put("FTP_ROOT", temp);
ftpqs.getConfig().setApplicationConfiguration(appConfig);
handler.sendClientMsg("+OK root changed");
} else {
handler.sendClientMsg("-ERR not a directory or can't read : "+temp);
}
return true;
} else if(command.toLowerCase().equals("get ftproot")) {
HashMap appConfig = ftpqs.getConfig().getApplicationConfiguration();
String temp = null;
if(appConfig!=null)
temp = (String)appConfig.get("FTP_ROOT");
else
temp = System.getProperty("user.home");
handler.sendClientMsg("+OK " + temp);
return true;
} else if(command.toLowerCase().equals("help")) {