You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Jeffrey D. Brekke" <jb...@wi.rr.com> on 2005/04/05 04:17:26 UTC
Re: NET FTPClient changeWorkingDirectory
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