commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance Semmens" <>
Subject RE: [VFS] FTP path does not exist
Date Fri, 04 Nov 2005 14:58:43 GMT
D'oh... I had not put commons-net.jar in my classpath
'tis working now.

-----Original Message-----
From: Lance Semmens 
Sent: 04 November 2005 14:17
To: 'Jakarta Commons Users List'
Subject: [VFS] FTP path does not exist

I'm serving a FTP site using IIS which is available at ftp://host 

The following code:
	FileSystemManager fsManager = VFS.getManager();
	FileObject fromFile = fsManager.resolveFile("ftp://host/path");
	FileObject toFile = ...;
	toFile.copyFrom(fromFile, new AllFileSelector());

Causes this exception:
	org.apache.commons.vfs.FileSystemException: Could not copy
"ftp://host/path" because it does not exist.

When I use a browser to hit ftp://host/path I see the ftp site fine.
Any ideas as to why VFS can't find the path??


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

View raw message