commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Baranski" <list-subscripti...@secmgmt.com>
Subject [fs] Problem with FTP:
Date Thu, 12 Aug 2010 16:16:57 GMT
I have the following URL:

ftp://myuser:mypassword@mysite.net/home/myuser/test-xls

and am trying to copy a file into that directory.

Here is the code I'm using:

				FileObject sourceFile =
fsManager.resolveFile("/tmp/test.txt");
                        FileObject targetFile =
fsManager.resolveFile("ftp://myuser:mypassword@mysite.net/home/myuser/test-x
ls");
                        targetFile.copyFrom(sourceFile, new
AllFileSelector());

I don't get an error, and I know it can connect because I get an exception
if I break the password or site name.  Any ideas why the put is not working?

Thanks,
Mike.


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


Mime
View raw message