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

boolean net::sf::jftp::net::FtpConnection::mkdir ( String  dirName  )  [inline]

Create a directory with the given name.

Parameters:
dirName The name of the directory to create
Returns:
True if successful, false otherwise

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

Definition at line 2261 of file FtpConnection.java.

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

    {
        jcon.send(MKD + " " + dirName);

        boolean ret = success(POSITIVE); // Filezille server bugfix, was: FTP257_PATH_CREATED);
        Log.out("mkdir(" + dirName + ")  returned: " + ret);

        //*** Added 03/20/2005
        fireDirectoryUpdate(this);

        //***     
        return ret;
    }


Generated by  Doxygen 1.6.0   Back to index