Get Filesize of FTP-FileSet IB DIR

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Get Filesize of FTP-FileSet IB DIR

  • Creator
    Topic
  • #53396
    Jerry Tilsley
    Participant

      Clovertechers!

      I need some help here.  I have an inbound ftp-fileset thread in which I need to check the filesize before processing to ensure the file is complete before grabbing it.  I know I cannot get the mtime because of it being over FTP, so I thought I would go with the filesize, but am stuck on this as well.

      Any help is appreciated.

      Thanks,

      Jerry

    Viewing 1 reply thread
    • Author
      Replies
      • #77560
        Charlie Bursell
        Participant

          For an FTP interface to do this you need to write your own using TclCurl.  It would be easy enough for Fileset/Local but not FTP.

          FWIW, we have added a flag to the Fileset protocol in CL 6.0.  This flag will allow you to ask for a long directory listing when using a Directory Parse proc.  It will give you access to times, sizes, etc.

          But for now, the TclCurl way is best.  Of coues there is also an FTP package in tcllib that can be used but I prefer TcCurl

        • #77561
          Jerry Tilsley
          Participant

            I will investigate that the option with TclCurl to get by until 6.0 is finally released GA.

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.