commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@email.dk
Subject [VFS] ftp and path problems?
Date Mon, 05 Sep 2005 18:52:09 GMT
Hi again,

I want to define the absolute path for my ftp dir like this:

remDir = fsManager.resolveFile("ftp://me:pass@ftp.domain.dk/import/home2/me");

That is home2 is probably a mounted dir on the server. This does not seem to work.

when using an ftp client the PWD is:
"/.automount/idefix/root/export/home2/me"

But that too does not work as path.

I have used the:
FileSystemOptions opts = new FileSystemOptions();        
FtpFileSystemConfigBuilder.getInstance().setUserDirIsRoot(opts, true);

That works great, but it is not exactly what I want.

any help is welcome :-)

Jens


org.apache.commons.vfs.FileSystemException: Could not determine the type of
file "ftp://me:pass@ftp.domain.dk/import/home2/me".
	at
org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1229)
	at
org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractFileObject.java:515)
	at app.CloneTask.run(CloneTask.java:96)
	at app.Clone.main(Clone.java:88)
	at app.CloneTask.main(CloneTask.java:62)
Caused by: java.lang.NullPointerException
	at
org.apache.commons.vfs.provider.ftp.FtpFileObject.doGetChildren(FtpFileObject.java:136)
	at
org.apache.commons.vfs.provider.ftp.FtpFileObject.getChildFile(FtpFileObject.java:93)
	at
org.apache.commons.vfs.provider.ftp.FtpFileObject.getInfo(FtpFileObject.java:169)
	at
org.apache.commons.vfs.provider.ftp.FtpFileObject.doAttach(FtpFileObject.java:158)
	at
org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1215)
	... 4 more

---------------------------------------------------------------------
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