DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23560>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23560

FTPClient.storeFile(...) should return status information

           Summary: FTPClient.storeFile(...) should return status
                    information
           Product: Commons
           Version: 1.0 Final
          Platform: All
               URL: http://jakarta.apache.org/commons/net/apidocs/org/apache
                    /commons/net/ftp/FTPClient.html#storeFile(java.lang.Stri
                    ng, java.io.InputStream)
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Net
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The storeFile method is defined as follows in the FTPClient class: 
 
boolean storeFile(String, InputStream) 
 
The return value is a simple yes/no indicating if the thing succeeded. This interface 
is too 
simple for real-world applications. If the upload fails, then the FTP server normally 
returns a 
status code and a description of the error. 
 
For example: 
 
550 xins-0.126.tar.gz: Overwrite permission denied 
 
Suggestion: 
1) Deprecated the current storeFile(String,InputStream) that returns a boolean 
2) Add a method storeFile(InputStream local, String remote) that returns the status 
code and 
description returned by the server (exact return type to be determined)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to