티스토리 뷰
bool GetFiles(vector<path>& v, const path& Dir, bool bSearchSubDirectories = true)
{
if ( ! is_directory(Dir) ) return false;
for (const auto& entry : directory_iterator { Dir} )
{
if ( is_regular_file( entry.status() ) )
v.push_back( entry.path() );
else if( is_directory( entry.status() ) )
GetFiles(v, entry.path(), bSearchSubDirectories);
}
return true;
}
'Programing > C++' 카테고리의 다른 글
C++17 Study (0) | 2018.01.18 |
---|---|
'17.05.12 Data Struct Sample Data (0) | 2017.05.11 |
유니티 Coroutine을 C++ FrameWork에서 구현해보자! (1) | 2016.09.17 |
어머.. SVN으로 커밋하다가 오류가 떴대... (0) | 2016.07.30 |
virtual 소멸자를 써야하는 이유!!!!!! (0) | 2016.07.11 |
댓글