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

Method FileReadable

src/util/fileutil.cpp:147–152  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// FileReadable //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

145// FileReadable
146///////////////////////////////////////////////////////////////////////////////
147bool cFileUtil::FileReadable(const TSTRING& fileName)
148{
149 // TODO:BAM on Win32 systems, _taccess doesn't check DACL,
150 // so all files are really readable
151 return (_taccess(fileName.c_str(), R_OK) == 0);
152}
153
154///////////////////////////////////////////////////////////////////////////////
155// FileWritable

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected