Commit 89bd96c3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

fs: unix: Ignore hidden folders

parent ad5c1219
......@@ -62,11 +62,9 @@ void Directory::read() const
while ( ( result = readdir( dir.get() ) ) != nullptr )
{
if ( strcmp( result->d_name, "." ) == 0 ||
strcmp( result->d_name, ".." ) == 0 )
{
if ( result->d_name == nullptr || result->d_name[0] == '.' )
continue;
}
std::string path = m_path + "/" + result->d_name;
struct stat s;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment