classes/CSFTP.cpp
CSFTP::Directory CSFTP::openDirectory(const std::string &directoryPath)
    {
        Directory directory{sftp_opendir(m_sftp, directoryPath.c_str())};
        if (directory.get() == NULL)
        {
            throw Exception(*this, __func__);
        }
        return (directory);
    }
//
// Open a remote directory for reading.
//
Open a remote directory for reading.
Open a remote directory for reading .
CSFTP::Directory CSFTP::openDirectory(const std::string &directoryPath)
    {
        Directory directory{sftp_opendir(m_sftp, directoryPath.c_str())};
        if (directory.get() == NULL)
        {
            throw Exception(*this, __func__);
        }
        return (directory);
    }
CSFTP :: Directory CSFTP :: openDirectory ( const std :: string & directoryPath ) { Directory directory { sftp_opendir ( m_sftp , directoryPath . c_str ( ) ) } ; if ( directory . get ( ) == NULL ) { throw Exception ( * this , __func__ ) ; } return ( directory ) ; }
Open a remote directory for reading.
Open a remote directory for reading .