MCPcopy Create free account
hub / github.com/DFIR-ORC/dfir-orc / GetInputFile

Method GetInputFile

src/OrcLib/Configuration/ConfigFile.cpp:573–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573HRESULT ConfigFile::GetInputFile(const ConfigItem& item, std::wstring& inputFile, bool checkExists)
574{
575 HRESULT hr = E_FAIL;
576
577 if (item)
578 {
579 if (FAILED(hr = ::ExpandFilePath(item.c_str(), inputFile, checkExists)))
580 {
581 Log::Error(L"Error in specified inputfile in config file '{}' [{}]", item.c_str(), SystemError(hr));
582 return hr;
583 }
584 }
585 return S_OK;
586}
587
588HRESULT ConfigFile::SetInputFile(ConfigItem& item, const std::wstring& inputFile)
589{

Callers 1

Calls 3

SystemErrorFunction · 0.85
c_strMethod · 0.80
ErrorFunction · 0.50

Tested by

no test coverage detected