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

Method DoStat

src/fs/fsdatasourceiter.cpp:171–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171bool cFSDataSourceIter::DoStat(const TSTRING& name, cFSStatArgs& statArgs)
172{
173 try
174 {
175 iFSServices::GetInstance()->Stat(name, statArgs);
176 }
177 catch (eError& e)
178 {
179 e.SetFatality(false);
180 AddIterationError(e);
181 return false;
182 }
183 catch (std::exception& e)
184 {
185 AddIterationError(eFSDataSourceIter(name, e.what(), eError::NON_FATAL));
186 return false;
187 }
188 catch (...)
189 {
190 AddIterationError(eFSDataSourceIter(name, "unknown", eError::NON_FATAL));
191 return false;
192 }
193
194 return true;
195}
196
197///////////////////////////////////////////////////////////////////////////////
198// InitializeTypeInfo

Callers

nothing calls this directly

Calls 3

StatMethod · 0.80
SetFatalityMethod · 0.80
whatMethod · 0.80

Tested by

no test coverage detected