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

FTPClient.storeFile returns false in case the file is being transferred to some Windows machine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 1.4
    • 1.5
    • None
    • None
    • Operating System: Windows

    Description

      The method works perfectly in case I am transferring the file to a Linux/Unix machine. However if I am transferring a file to a windows machine the storeFile method returns false.
      The code snippet:
      File local = new File(localFile);
      if (local.exists()){
      in = new FileInputStream(local);
      if (ftpSession.storeFile(remoteFile, in))

      { System.out.println("file transferred"); }

      else

      { System.out.println("file cannot be transferred"); }

      }

      The remoteFile and the the local fileName are correct. Still the storeFile method is returning false.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shashi2309 shashidhar gaurav misra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: