Hi Joakim,
Yes, thats possible, but not within the Ftplet implementation.
You can implement org.apache.ftpserver.ftplet.FileSystemManager into
your application and use this as an interface for your application data.
All you need to do is to specify it in the configuration file, e.g.
<file-system-manager>
<class>com.myApp.myFtpFileSystemManager</class>
</file-system-manager>
Heres the FtpFileSystemManager API:
http://incubator.apache.org/ftpserver/apidocs/org/apache/ftpserver/
ftplet/FileSystemManager.html
Regards,
Bastian
On Jan 23, 2007, at 6:33 PM, Joakim Back wrote:
Hello!
I'm looking into using the impressive Apache FTP Server as a facade
to a virtual file system within an application we're currently
developing. The idea is to have the FTP server access the virtual
files through a service layer, as a kind of back door to the
application data.
The Ftplets seem to allow hooking into some general events, but is
it also possible to hook such things as "onFileListing" or
implementing a custom filemanager?
Any pointer towards where to start looking for a sollution would be
greatly appreciated.
Best regards,
Joakim Back
---
Bastian Gerhard
Technology Group, Ashley Associates Ltd.
Minami-Aoyama First Building 8F,
7-8-1 Minami-Aoyama,
Minato-ku,
Tokyo 107-0062,
JAPAN