|
|
|
|
@ -158,7 +158,6 @@ void MainConfig::GenerateSource() {
|
|
|
|
|
|
|
|
|
|
void MainConfig::GenerateDirectoryFilter() { |
|
|
|
|
auto dir_cfg=Singleton::Config::directories(); |
|
|
|
|
JDEBUG("Fetching directory filter"); |
|
|
|
|
boost::property_tree::ptree dir_json = cfg.get_child("directoryfilter"); |
|
|
|
|
boost::property_tree::ptree ignore_json = dir_json.get_child("ignore"); |
|
|
|
|
boost::property_tree::ptree except_json = dir_json.get_child("exceptions"); |
|
|
|
|
@ -166,7 +165,6 @@ void MainConfig::GenerateDirectoryFilter() {
|
|
|
|
|
dir_cfg->exceptions.emplace_back(i.second.get_value<std::string>()); |
|
|
|
|
for ( auto &i : ignore_json ) |
|
|
|
|
dir_cfg->ignored.emplace_back(i.second.get_value<std::string>()); |
|
|
|
|
JDEBUG("Directory filter fetched"); |
|
|
|
|
} |
|
|
|
|
std::vector<std::string> MainConfig::init_home_path(){ |
|
|
|
|
std::vector<std::string> locations = JUCI_ENV_SEARCH_LOCATIONS; |
|
|
|
|
|