FTP Library Package 1.2 for Tcl/Tk Manual Pages

FTP::Type  ?ascii|binary?
The FTP::Type command sets the ftp file transfer type either to ascii or to binary. In every case, also if the type name is unspecified, it returns the current type.

Only ascii and binary types are currently supported. The ascii type is normally used to convert text files to a format suitable for text editors on the platform depended destination machine. The binary type allows undisturbed transfers of non-text files, such as compressed files, images and executables.

# get file transfer type
set current_type [FTP::Type]

# set file transfer type
FTP::Type ascii


[Contents]  [Previous: FTP::Pwd]  [Next: FTP::List]

© 1999 Steffen Traeger