Hi again,

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

remDir = fsManager.resolveFile("ftp://me:[EMAIL PROTECTED]/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:[EMAIL PROTECTED]/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to