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

Method BCurrentIsDir

src/vrcore/dirtools_public.cpp:371–378  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: returns whether current item under examination is a directory -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

369// Purpose: returns whether current item under examination is a directory
370//-----------------------------------------------------------------------------
371bool CDirIterator::BCurrentIsDir() const
372{
373#if defined( _WIN32 )
374 return ( m_pFindData->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) != 0;
375#else
376 return ( m_pFindData->attrib & _A_SUBDIR ? true : false );
377#endif
378}
379
380
381//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected