On Thu, Jan 28, 2010 at 7:57 PM, Satish Kaveti <[email protected]> wrote:
> I am using Apache FtpServer 1.0.2. For my application, I need to save
> files with different filename extensions in different directories. I think
> I need to use Ftplet and examine the extensions inside beforeCommand. Is
> it possible to change the save directory inside the Ftplet and continue
> with the default processing for the STOR command ?

Yes, you should be able to do this in an Ftplet. Override the
beforeCommand to trap STOR (and the other upload methods), then:
session.getFileSystemView().changeWorkingDirectory("the dir for the file type");

/niklas

Reply via email to