Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-667

FTP doesn't support size command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.6
    • None
    • FTP
    • None
    • Important
    • RFC 3659

    Description

      The class org.apache.commons.net.ftp.FTP which implements many FTP commands (cdup cwd  mkd ..) still doesn't support size command.

      Indeed there is no size() method for this class, and org.apache.commons.net.ftp.FTPCmd doesn't have the SIZE constant (as a consequence we also couldn't call sendCommand("SIZE path") as a workaround).

       

      Please don't misunderstand with FTPFile.getSize() which returns the size found from a list result (this size being also wrong when dealing with symlinks, but that's another story)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Eugène Adell Eugène Adell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: