commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenxuejie <>
Subject when use FTPClient to do server to server file transfer's append failed
Date Fri, 15 Oct 2010 01:00:15 GMT
Hi all

The action is "server to which the client is connected to append to a given
file on the other server"
The result is the new file replaced the remote file.

I think  should change as follows:

public boolean remoteAppend(String filename) throws IOException
        if (__dataConnectionMode == ACTIVE_REMOTE_DATA_CONNECTION_MODE ||
                __dataConnectionMode == PASSIVE_REMOTE_DATA_CONNECTION_MODE)

//            return FTPReply.isPositivePreliminary(stor(filename));
            return FTPReply.isPositivePreliminary(appe(filename));        
        return false;


--Xuejie Chen

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message