MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / BCurrentIsReadOnly

Method BCurrentIsReadOnly

src/vrcore/dirtools_public.cpp:397–404  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: returns whether current item under examination is read-only -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

395// Purpose: returns whether current item under examination is read-only
396//-----------------------------------------------------------------------------
397bool CDirIterator::BCurrentIsReadOnly() const
398{
399#if defined( _WIN32 )
400 return ( m_pFindData->dwFileAttributes & FILE_ATTRIBUTE_READONLY ) != 0;
401#else
402 return ( m_pFindData->attrib & _A_RDONLY ? true : false );
403#endif
404}
405
406
407//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected