commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Yasuda <constructic...@yahoo.com>
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();
...
ftp.changeWorkingDirectory("/tmp");

This will change me to the /tmp directory.

However,
String dir = "/tmp";
ftp.changeWorkingDirectory(dir);

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?

Gary


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message