ftp Library Package 2.1 for Tcl/Tk help file

  ftp Library Package 2.1 for Tcl/Tk Manual Pages

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

    Only ascii and binary types are currently supported. There is some early (alhpa) support for Tenex mode. 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.

  EXAMPLE

        # get file transfer type
        set current_type [ftp::Type $conn]

        # set file transfer type
        ftp::Type $conn ascii

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

© 1999 Steffen Traeger