Method FTPClient2():setTransferMode() Foundation

Sets the data transfer mode.

Syntax
:setTransferMode( <cMode> ) --> self
Parameters
<cMode>
The transfer mode to use, either "binary" or "ascii".
Return

This method returns self.

Description

Sets the data transfer mode for subsequent FTP operations. The transfer mode determines how files are transferred between the client and server.

The modes include "binary" for transferring binary files without modification, and "ascii" for text files with potential line ending conversions. Using the wrong transfer mode can corrupt files during transfer.

The default transfer mode is "binary" to prevent any data modifications during transfer.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.