classes/CSFTP.cpp
void CSFTP::getFileAttributes(const std::string &filePath, FileAttributes &fileAttributes)
    {
        sftp_attributes file{sftp_stat(m_sftp, filePath.c_str())};
        if (file == NULL)
        {
            throw Exception(*this, __func__);
        }
        fileAttributes.reset(file);
    }
//
// Get the attributes of a file from file name passed in.
//
Get the attributes of a file from file name passed in.
Get the attributes of a file from file name passed in .
void CSFTP::getFileAttributes(const std::string &filePath, FileAttributes &fileAttributes)
    {
        sftp_attributes file{sftp_stat(m_sftp, filePath.c_str())};
        if (file == NULL)
        {
            throw Exception(*this, __func__);
        }
        fileAttributes.reset(file);
    }
void CSFTP :: getFileAttributes ( const std :: string & filePath , FileAttributes & fileAttributes ) { sftp_attributes file { sftp_stat ( m_sftp , filePath . c_str ( ) ) } ; if ( file == NULL ) { throw Exception ( * this , __func__ ) ; } fileAttributes . reset ( file ) ; }
Get the attributes of a file from file name passed in.
Get the attributes of a file from file name passed in .