ftp Library Package 2.1 for Tcl/Tk help file

  ftp Library Package 2.1 for Tcl/Tk Manual Pages

  COMMAND
    ftp::FileSize handle file
    The ftp::FileSize command gets the file size of the specified file on the ftp server.
    ATTENTION! It doesn't work properly in ascci mode and isn't supported by all ftp server implementations.

    If the command fails an empty string is returned.

  EXAMPLE

        # get file size
        set old_type [ftp::Type $conn]
        ftp::Type $conn binary
        set size [ftp::FileSize $conn index.htm]
        ftp::Type $conn $old_type

[Contents] [Previous: ftp::NList] [Next: ftp::ModTime]

© 1999 Steffen Traeger