classes/CFTP.cpp
std::uint16_t CFTP::changeWorkingDirectory(const std::string &workingDirectoryPath)
    {
        try
        {
            if (!m_connected)
            {
                throw std::logic_error("Already connected to a server.");
            }
            ftpCommand("CWD " + workingDirectoryPath);
            return (m_commandStatusCode);
        }
        catch (const std::exception &e)
        {
            throw Exception(e.what());
        }
    }
//
// Change current working directory on server.
//
Change current working directory on server.
Change current working directory on server .
std::uint16_t CFTP::changeWorkingDirectory(const std::string &workingDirectoryPath)
    {
        try
        {
            if (!m_connected)
            {
                throw std::logic_error("Already connected to a server.");
            }
            ftpCommand("CWD " + workingDirectoryPath);
            return (m_commandStatusCode);
        }
        catch (const std::exception &e)
        {
            throw Exception(e.what());
        }
    }
std :: uint16_t CFTP :: changeWorkingDirectory ( const std :: string & workingDirectoryPath ) { try { if ( ! m_connected ) { throw std :: logic_error ( " " ) ; } ftpCommand ( " " + workingDirectoryPath ) ; return ( m_commandStatusCode ) ; } catch ( const std :: exception & e ) { throw Exception ( e . what ( ) ) ; } }
Change current working directory on server.
Change current working directory on server .