beast::File Config::getConfigDir () const { beast::String const s (CONFIG_FILE.native().c_str ()); if (s.isNotEmpty ()) return beast::File (s).getParentDirectory (); return beast::File::nonexistent (); }
beast::File Config::getValidatorsFile () const { beast::String const s (VALIDATORS_FILE.native().c_str()); if (s.isNotEmpty() && getConfigDir() != beast::File::nonexistent()) return getConfigDir().getChildFile (s); return beast::File::nonexistent (); }
beast::File Config::getDatabaseDir () const { beast::String const s (DATA_DIR.native().c_str()); if (s.isNotEmpty ()) return beast::File (s); return beast::File::nonexistent (); }
beast::File Config::getModuleDatabasePath () const { boost::filesystem::path dbPath (legacy ("database_path")); beast::String const s (dbPath.native ().c_str ()); if (s.isNotEmpty ()) return beast::File (s); return beast::File::nonexistent (); }