drapostolos / rdp4j

Remote Directory Poller for Java
MIT License
46 stars 25 forks source link

user guide example ftp doesn't connect #11

Open storysj opened 8 years ago

storysj commented 8 years ago

In the User Guide, the example FtpPolledDirectory is setup like:

            String host = "ftp.mozilla.org";
            String workingDirectory = "pub/addons";
            String username = "anonymous";
            String password = "anonymous";
            PolledDirectory polledDirectory = new FtpDirectory(host, workingDirectory, username, password);

but the connection never seems to be established with that host and working directory. I was able to use the example by switching to:

        String host = "ftp.cs.brown.edu";
        String workingDirectory = "pub/papers/compgeo/jgaa/accepted/2002/CVS";
drapostolos commented 8 years ago

Thanks! It's been a while since I did that example. Probably they changed things on server side. I'll update the User Guide.

/alex

drapostolos commented 8 years ago

User guide is updated.

and here is the reason for the old example not working anymore: https://blog.mozilla.org/it/2015/07/27/product-delivery-migration-what-is-changing-when-its-changing-and-the-impacts/

Thanks!