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

Method GetCurrentDir

src/core/unixfsservices.cpp:252–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250*/
251
252void cUnixFSServices::GetCurrentDir(TSTRING& strCurDir) const
253{
254 TCHAR pathname[iFSServices::TW_MAX_PATH];
255 pathname[0] = '\0';
256 TCHAR* ret = getcwd(pathname, sizeof(TCHAR) * iFSServices::TW_MAX_PATH);
257
258 if (ret == NULL)
259 throw eFSServicesGeneric(strCurDir, iFSServices::GetInstance()->GetErrString());
260
261 strCurDir = pathname;
262}
263
264
265TSTRING& cUnixFSServices::MakeTempFilename(TSTRING& strName) const

Callers 2

TwTestDirFunction · 0.80
TestGetCurrentDirFunction · 0.80

Calls 1

GetErrStringMethod · 0.80

Tested by 2

TwTestDirFunction · 0.64
TestGetCurrentDirFunction · 0.64