Function indexDirectory

Synopsis

#include <include/fsindexer.hpp>

static vector< FSItem > indexDirectory(const wstring &in_dir, const wstring &filter=L"", bool recursive=true)

Description

No description yet.

Source

Lines 96-105 in src/fsindexer.cpp. Line 36 in include/fsindexer.hpp.

vector< FSItem > FSIndexer::indexDirectory( const wstring& in_dir, const wstring& filter, bool recursive ) {
    vector< FSItem > result;
    FSItem dir_item( in_dir );
    if ( filter.empty() && !dir_item.inArchivePath().empty() ) {
        result.push_back( dir_item );
    }
    FSIndexer indexer( dir_item, filter );
    indexer.listDirectoryItems( result, recursive );
    return result;
}





Add Discussion as Guest

Log in