MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / CreatePath

Method CreatePath

src/tw/dbdatasource.cpp:306–317  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// CreatePath //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

304// CreatePath
305///////////////////////////////////////////////////////////////////////////////
306void cDbDataSourceIter::CreatePath(const cFCOName& name) //throw (eError)
307{
308 ASSERT(name.GetSize() > 0);
309
310 cFCOName parentName = name;
311 parentName.Pop();
312 SeekToDirectory(parentName, true);
313 if (!mDbIter.SeekTo(name.GetShortName()))
314 {
315 mDbIter.CreateEntry(name.GetShortName());
316 }
317}
318
319
320///////////////////////////////////////////////////////////////////////////////

Callers 2

ExecuteMethod · 0.80
ExecuteMethod · 0.80

Calls 5

CreateEntryMethod · 0.80
GetSizeMethod · 0.45
PopMethod · 0.45
SeekToMethod · 0.45
GetShortNameMethod · 0.45

Tested by

no test coverage detected