classes/CSFTP.cpp
void CSFTP::changeOwnerGroup(const std::string &filePath, const FileOwner &owner, const FileGroup &group)
    {
        if (sftp_chown(m_sftp, filePath.c_str(), owner, group) < 0)
        {
            throw Exception(*this, __func__);
        }
    }
//
// Change to owner/group of a remote file.
//
Change to owner/group of a remote file.
Change to owner / group of a remote file .
void CSFTP::changeOwnerGroup(const std::string &filePath, const FileOwner &owner, const FileGroup &group)
    {
        if (sftp_chown(m_sftp, filePath.c_str(), owner, group) < 0)
        {
            throw Exception(*this, __func__);
        }
    }
void CSFTP :: changeOwnerGroup ( const std :: string & filePath , const FileOwner & owner , const FileGroup & group ) { if ( sftp_chown ( m_sftp , filePath . c_str ( ) , owner , group ) < 0 ) { throw Exception ( * this , __func__ ) ; } }
Change to owner/group of a remote file.
Change to owner / group of a remote file .