Greetings all --
I'm trying to set up an embedded ftp server almost completely through
properties objects (I would like it to be rather dynamic in that sense).
I'm having a problem setting the default home directory for the user
anonymous. Currently, in order to set that directory, I am running the
following code:
final Configuration config = new PropertiesConfiguration(ftpProperties);
final FtpServerContext ftpConfig = new
ConfigurableFtpServerContext(config);
BaseUser anonymousUser = (BaseUser) ftpConfig.getUserManager
().getUserByName("anonymous");
anonymousUser.setHomeDirectory("UPDATES/Release_2_3_7");
ftpConfig.getUserManager().save(anonymousUser);
It seems like there should be an easier way to do this, like setting
something in the configuration. I've tried setting up things for the user
manager in that root properties file, but nothing seems to be working. Any
thoughts?
marc