commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mihael Knezevic <>
Subject [Net] FTPClient method rename not working
Date Tue, 01 Feb 2005 14:10:30 GMT

sorry if this is on old one, but i'm starting to use the commons-net java 
library and i'm trying to rename a file on a server. i tried the rename 
function but that returned my only

550 Renaming attempt failed.

in the reply string (getReplyString method).

i took a look at the source code of the method and there were only some lines:

    public boolean rename(String from, String to) throws IOException
        if (!FTPReply.isPositiveIntermediate(rnfr(from)))
            return false;

        return FTPReply.isPositiveCompletion(rnto(to));

i copied the lines and changed the variables and it worked. both function 
calls of FTPReply returned true. so why does the rename method returns false?

i'm using commons-net 1.3.0 and a ftp server on an iseries (os400).

thanx in advance.


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

View raw message