Code: Select all
ShareManager::getInstance()->getDirectories();
Code: Select all
StringList ShareManager::getDirectories() {
RLock l(cs);
StringList tmp;
tmp.reserve(directories.size());
for(Directory::MapIter i = directories.begin(); i != directories.end(); ++i) {
tmp.push_back(i->first);
}
return tmp;
}
So if anyone can explain to me how ShareManager::getInstance()->getDirectories(); gets the directories, not the actual data, just the directory list from the xml file, I'd be greatful. Thanks.