[
https://issues.apache.org/jira/browse/NET-500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved NET-500.
----------------------
Resolution: Fixed
Fix Version/s: (was: 3.2)
3.3
> FTPClientExample does binary transfers by default instead of ASCII as stated
> in documentation
> ---------------------------------------------------------------------------------------------
>
> Key: NET-500
> URL: https://issues.apache.org/jira/browse/NET-500
> Project: Commons Net
> Issue Type: Improvement
> Components: FTP
> Affects Versions: 3.2
> Environment: all environments concerned
> Reporter: Michael Frick
> Priority: Trivial
> Labels: patch
> Fix For: 3.3
>
>
> Following change should be added to the FTPClientExample class, otherwise
> the default ASCII setting will not be set.
> if (binaryTransfer) {
> ftp.setFileType(FTP.BINARY_FILE_TYPE);
> }
> // Added else to set correct default file type / M. Frick
> 2013-02-03
> // Default ftp class file type seems to be binary!
> else
> {
> ftp.setFileType(FTP.ASCII_FILE_TYPE);
> }
> // End of change / M. Frick 2013-02-03
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira