Sorry for the late reply

On Mon, Nov 29, 2010 at 9:37 AM, Aidan Diffey <[email protected]> wrote:
> I would like to create and set my own custom FileObserver so I can
> keep a track of what has been downloaded.   How can I do this?

You should be able to do something like:

        DefaultFtpServerContext ctx = new DefaultFtpServerContext();
        DefaultFtpStatistics stats = new DefaultFtpStatistics();
        stats.setFileObserver(new MyFileObserver());
        ctx.setFtpStatistics(stats);
        FtpServer server = new DefaultFtpServer(ctx);
        server.start();

Please note that FileObserver is not currently part of our public API
and thus might change.

/niklas

Reply via email to