[ 
https://issues.apache.org/jira/browse/VFS-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721209#action_12721209
 ] 

Kamil Dybicz commented on VFS-265:
----------------------------------

I had also some problems with that Issue. I was trying to bypass it using this 
code:

{code:java}
FileSystemManager manager = VFS.getManager();

FtpFileSystemConfigBuilder builder = (FtpFileSystemConfigBuilder) 
manager.getFileSystemConfigBuilder("ftp");
builder.setUserDirIsRoot(new FileSystemOptions(), true) ;

InputStream is = manager.resolveFile("ftp://...";).getContent().getInputStream();
{code}

but without success.

> Set user dir as root dir by default for FTP provider
> ----------------------------------------------------
>
>                 Key: VFS-265
>                 URL: https://issues.apache.org/jira/browse/VFS-265
>             Project: Commons VFS
>          Issue Type: Wish
>    Affects Versions: 2.0
>            Reporter: Scott Bjerstedt
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: FTP-userrootdefault.patch
>
>
> Currently the FTP provider try to set "/" as the default directory on login, 
> and many servers don't support this on login. Would like to have the code in 
> FtpFileSystemConfigBuilder set the user dir as root by default. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to