commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shashidhar gaurav misra (JIRA)" <j...@apache.org>
Subject [jira] Created: (NET-167) FTPClient.storeFile returns false in case the file is being transferred to some Windows machine
Date Tue, 31 Jul 2007 09:16:53 GMT
FTPClient.storeFile returns false in case the file is being transferred to some Windows machine
-----------------------------------------------------------------------------------------------

                 Key: NET-167
                 URL: https://issues.apache.org/jira/browse/NET-167
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 1.4
         Environment: Operating System: Windows
            Reporter: shashidhar gaurav misra
            Priority: Critical
             Fix For: 1.5


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message