Dave, Both VFS and your custom FileSystemView is fairly simple to embed/implement. In-fact I prefer having a custom FileSystemView as it lets me control the files/folders and the way we show it. You just have to create your own FileSystemView and pass it to FtpServerFactory so that it handles all the operations CWD, PWD, MKD etc.
Cheers, Sam ________________________________ From: David Hoffer <dhoff...@gmail.com> To: ftpserver-users@mina.apache.org Sent: Monday, 16 September 2013, 19:25 Subject: Re: Apache FtpServer doubts In my case I wanted a virtual file system that was event based, e.g. when file was received it would fire event with data (name plus byte array). I got the events/notification working fine...just didn't have time to implement the VFS. For now I just read the byes from the native file system and then delete the file. I hope to get back to that...but got directed to a different project for the moment. IMHO, it seems a VFS would have enough general interest...it would be great to be part of the FTPServer project...either in the mainline code...or in an example project. -Dave On Mon, Sep 16, 2013 at 6:59 AM, John Hartnup <john.hart...@gmail.com>wrote: > Well, NativeFilesystem etc. are one implementation that's in the FTPServer > code base. > > It's not a particularly involved task. There are lots of methods, but most > of them will have very short implementations (isReadable(), isWritable() > etc.) > > What goes into the implementation depends on what you want for the backend. > > > On 16 September 2013 13:37, David Hoffer <dhoff...@gmail.com> wrote: > > > Okay...I started down that path but found it was going to be a fairly > > involved task...I was wondering if maybe someone had an implementation in > > the public domain or possibly as part of FTPServer code base. > > > > -Dave > > > > > > On Mon, Sep 16, 2013 at 6:33 AM, John Hartnup <john.hart...@gmail.com > > >wrote: > > > > > Write your own implementations of FtpFile, FileSystemView, > > > FileSystemFactory. Inject the FileSystemFactory into your FtpServer > > object. > > > > > > That's it. > > > > > > > > > On 16 September 2013 13:29, David Hoffer <dhoff...@gmail.com> wrote: > > > > > > > I'm interested in the VFS...I wasn't aware of that...can you point me > > to > > > > info on that? For an app I have I'd like an in memory file system. > > > > > > > > Thanks, > > > > -Dave > > > > > > > > > > > > On Sun, Sep 15, 2013 at 11:26 PM, Sam Mizanin < > > sammyuglykid...@yahoo.com > > > > >wrote: > > > > > > > > > Salvador, > > > > > > > > > > The Apache Ftpserver is pretty robust and stable. Have been using > it > > > for > > > > > sometime. Its easily embedded and can tweak the way you want it > which > > > > > includes the Authentication module and the FileSystemView. It works > > > great > > > > > with the normal file system as well as with the VFS. > > > > > > > > > > Cheers, > > > > > Sam > > > > > > > > > > > > > > > ________________________________ > > > > > From: Niklas Gustavsson <nik...@protocol7.com> > > > > > To: ftpserver-users@mina.apache.org > > > > > Sent: Sunday, 15 September 2013, 14:48 > > > > > Subject: Re: Apache FtpServer doubts > > > > > > > > > > > > > > > On Thu, Sep 12, 2013 at 3:25 PM, Salvador Alcantara Cano > > > > > <salvador.alcant...@uab.cat> wrote: > > > > > > I am starting to use Apache FtpServer. It seems a good ftp > server, > > > but > > > > I > > > > > am not sure about the project activity. Is the Apache FtpServer an > > > active > > > > > project? How does Apache FtpServer compares with FileZilla? From > > > > > ApacheFtpServer I like it a lot to have event hooks via > > > > Ftplets...something > > > > > like this cannot be achieved with FileZilla. My concern is on > > > robustness > > > > > and stability. > > > > > > > > > > The FtpServer project is somewhat dormant but the code base is > > > > > reasonably solid. The way I see it, the major value FtpServer adds > is > > > > > being embeddable and offering a flexible API for integrating it, > like > > > > > switching out the file system or integrating with some custom > > > > > authentication. If you're looking for a more regular FTP server, > > > > > serving files from a normal file system, I'd go with something > else, > > > > > FileZilla being a good option. > > > > > > > > > > /niklas > > > > > > > > > > > > > > > > > > > > > -- > > > "There is no way to peace; peace is the way" > > > > > > > > > -- > "There is no way to peace; peace is the way" >