classes/CSFTP.cpp
void CSFTP::getFileAttributes(const File &fileHandle, FileAttributes &fileAttributes)
    {
        sftp_attributes file{sftp_fstat(fileHandle.get())};
        if (file == NULL)
        {
            throw Exception(*this, __func__);
        }
        fileAttributes.reset(file);
    }
//
// Get the attributes of a file from file handle passed in.
//
Get the attributes of a file from file handle passed in.
Get the attributes of a file from file handle passed in .
void CSFTP::getFileAttributes(const File &fileHandle, FileAttributes &fileAttributes)
    {
        sftp_attributes file{sftp_fstat(fileHandle.get())};
        if (file == NULL)
        {
            throw Exception(*this, __func__);
        }
        fileAttributes.reset(file);
    }
void CSFTP :: getFileAttributes ( const File & fileHandle , FileAttributes & fileAttributes ) { sftp_attributes file { sftp_fstat ( fileHandle . get ( ) ) } ; if ( file == NULL ) { throw Exception ( * this , __func__ ) ; } fileAttributes . reset ( file ) ; }
Get the attributes of a file from file handle passed in.
Get the attributes of a file from file handle passed in .