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

getModificationTime(<filename>) returns complete received line including response code and EOL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3
    • 3.4
    • FTP
    • The ftp server supports MDTM.

    Description

      When retrieving the last modification time of a file on the server via the
      method getModificationTime(String filename) it returns something like
      "213 20141111112706" where only the part after the space is the relevant data.

      I digged deeper and i found that the first part before the space is the positive
      response code which is not removed before getModificationTime returns.

      I consider this a minor bug as i think there is a simple work around
      (split by space, use second part only) but i do not believe that
      the result of the method is what a user expects regarding the documentation
      of that method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rabec Ralph Becker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: