Function foldersCount

Synopsis

#include <include/bitarchiveinfo.hpp>

uint32_t foldersCount() const

Description

Return
the number of folders contained in the archive.

Mentioned in

Source

Lines 72-81 in src/bitarchiveinfo.cpp. Line 111 in include/bitarchiveinfo.hpp.

uint32_t BitArchiveInfo::foldersCount() const {
    uint32_t result = 0;
    for ( uint32_t i = 0; i < itemsCount(); ++i ) {
        BitPropVariant prop = getItemProperty( i, BitProperty::IsDir );
        if ( !prop.isEmpty() && prop.getBool() ) {
            result += 1;
        }
    }
    return result;
}





Add Discussion as Guest

Log in