You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (JIRA)" <ji...@apache.org> on 2012/05/12 15:16:49 UTC

[jira] [Commented] (VFS-182) Usage of FTP with heterogene FTP server (possibility of using Ascii file type)

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

Gary D. Gregory commented on VFS-182:
-------------------------------------

The new usage is:
{code}
FtpFileSystemConfigBuilder.getInstance().setFileType(opts, FtpFileType.ASCII);
FtpFileSystemConfigBuilder.getInstance().setFileType(opts, FtpFileType.BINARY);
FtpFileSystemConfigBuilder.getInstance().setFileType(opts, FtpFileType.EBCDIC);
FtpFileSystemConfigBuilder.getInstance().setFileType(opts, FtpFileType.LOCAL);
{code}
This is different from the proposed patch but more flexible.
                
> Usage of FTP with heterogene FTP server (possibility of using Ascii file type)
> ------------------------------------------------------------------------------
>
>                 Key: VFS-182
>                 URL: https://issues.apache.org/jira/browse/VFS-182
>             Project: Commons VFS
>          Issue Type: Improvement
>         Environment: Mainframe BULL GCOS8
>            Reporter: Christian Bastin
>         Attachments: vfs-182_allow_ascii_file_type.diff, vfs-182_allow_ascii_file_type_v2.diff
>
>
> Using VFS with ftpServer on Mainframe Bull.  I need the posibility to set the file type to Ascii.   The navigation in the directory and the filesystem work properly but the accessing of a data file is not possible.  
> I saw that the FtpClienFactory allways set the file type to binary, is it possible to give an external parameter, ..
> FtpClienFactory :
> ....
>          // Set binary mode
>                 if (!client.setFileType(FTP.BINARY_FILE_TYPE))
>                 {
>                     throw new FileSystemException("vfs.provider.ftp/set-binary.error", hostname);
>                 }
> ...
> Christian Bastin.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira