MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / Init

Function Init

libi2pd/FS.cpp:218–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 }
217
218 bool Init() {
219 if (!fs_lib::exists(dataDir))
220 fs_lib::create_directory(dataDir);
221
222 std::string destinations = DataDirPath("destinations");
223 if (!fs_lib::exists(destinations))
224 fs_lib::create_directory(destinations);
225
226 std::string tags = DataDirPath("tags");
227 if (!fs_lib::exists(tags))
228 fs_lib::create_directory(tags);
229 else
230 i2p::garlic::CleanUpTagsFiles ();
231
232 return true;
233 }
234
235 bool ReadDir(const std::string & path, std::vector<std::string> & files) {
236 if (!fs_lib::exists(path))

Callers 2

initMethod · 0.85
InitI2PFunction · 0.85

Calls 2

DataDirPathFunction · 0.85
CleanUpTagsFilesFunction · 0.85

Tested by

no test coverage detected