commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Yasuda <>
Subject NET FTPClient changeWorkingDirectory
Date Tue, 05 Apr 2005 00:59:38 GMT
I am using the commons-net-1.3.0.jar libraries.

The changeWorkingDirectory(String) requires a Class
String as the path.  If I put the path between double
quotes, the directory is changed.  If I use a String
variable, the directory is not changed.

For example,
FTPClient ftp = new FTPClient();

This will change me to the /tmp directory.

String dir = "/tmp";

For some reason, I will not be placed in the /tmp
directory that is assigned to a String variable.

Even this will not work:
ftp.changeWorkingDirectory(dir + "/test");

Is this is a known bug?


Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message