Michael Frick created NET-500:
---------------------------------
Summary: 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
Fix For: 3.2
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