Logo Search packages:      
Sourcecode: jftp version File versions  Download package

boolean net::sf::jftp::net::FtpConnection::rename ( String  from,
String  to 
) [inline]

Moves or renames remote file.

Parameters:
from remote file to move or rename.
to new file name.
Returns:
true if completed successfully; false otherwise.

Implements net::sf::jftp::net::BasicConnection.

Definition at line 2644 of file FtpConnection.java.

References jcon, net::sf::jftp::net::FtpConstants::RC350, and net::sf::jftp::net::JConnection::send().

    {
        jcon.send("RNFR " + from);

        if(success(RC350))
        {
            jcon.send("RNTO " + to);

            if(success(POSITIVE))//FTP250_COMPLETED))
            {
                return true;
            }
        }

        return false;
    }


Generated by  Doxygen 1.6.0   Back to index