commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey D. Brekke" <jbre...@wi.rr.com>
Subject Re: NET FTPClient changeWorkingDirectory
Date Tue, 05 Apr 2005 02:17:26 GMT

Gary,

I think you may need to give us the context ( ie: more code ) around 
what you are doing.  Constant string or variable shouldn't matter.

Sometimes while I'm tracking these types of issues down, I write a small 
little test case with out my *application* getting in the way.  Maybe 
you've tried that already?

Gary Yasuda wrote:
> 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
> 


-- 
=====================================================================
Jeffrey D. Brekke                                   jbrekke@wi.rr.com
Wisconsin,  USA                                     brekke@apache.org
                                                     ekkerbj@yahoo.com
http://www.bloglines.com/blog/jbrekke               ekkerbj@gmail.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