Esempio n. 1
0
void RDirNode::debug(int indent) {
    std::string indentstr;
    while(static_cast<int>(indentstr.size()) < indent) indentstr += " ";

    debugLog("%s%s\n", indentstr.c_str(), abspath.c_str());

    for(std::list<RDirNode*>::iterator it = children.begin(); it != children.end(); it++) {
        RDirNode* node = (*it);
        node->debug(indent+1);
    }
}