commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [VFS] Root to user directory not /
Date Tue, 02 Aug 2005 20:11:51 GMT
Animate wrote:
>Is it possible in some distant release to add an
>argument someplace to permit this? 
>  
The next nightly allows you to configure the ftp-filesystem to use the 
user home as root:

        FileSystemOptions opts = new FileSystemOptions();
        FtpFileSystemConfigBuilder.getInstance().setUserDirIsRoot(opts, 
true);
        FileObject fo = 
VFS.getManager().resolveFile("ftp://vfsusr:pass@host/", opts);

Some additional testing is needet but it looks good.

---
Mario


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