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

void net::sf::jftp::net::FtpConnection::updatePWD (  )  [inline, private]

updates PWD

Definition at line 2172 of file FtpConnection.java.

References getLine(), getOsType(), jcon, net::sf::jftp::net::FtpConstants::PWD, and net::sf::jftp::net::JConnection::send().

Referenced by getPWD(), and login().

    {
        jcon.send(PWD);

        String tmp = getLine(POSITIVE);//FTP257_PATH_CREATED);

        if(tmp == null)
        {
            return;
        }

        if(TESTMODE)
        {
            tmp = "\"'T759F.'\"";
        }
              
        String x1 = tmp;
        
        if(x1.indexOf("\"") >= 0) {
            x1 = tmp.substring(tmp.indexOf("\"") + 1);
            x1 = x1.substring(0, x1.indexOf("\""));
        }

        if(getOsType().indexOf("MVS") >= 0)
        {
            //if(x1.indexOf("'") == 0) {
            //        String x2 = x1.substring(1, x1.lastIndexOf("'"));
            //        x1 = x2;
            //}
            Log.out("pwd: " + x1);
        }
        else if(!x1.endsWith("/"))
        {
            x1 = x1 + "/";
        }

        pwd = x1;
    }


Generated by  Doxygen 1.6.0   Back to index