Commit 1bc69918 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

fs: unix: directory: Ensure listed directories path end with a '/'

parent 26ae94f6
...@@ -126,7 +126,10 @@ void Directory::read() ...@@ -126,7 +126,10 @@ void Directory::read()
if ( S_ISDIR( s.st_mode ) ) if ( S_ISDIR( s.st_mode ) )
{ {
#endif #endif
m_dirs.emplace_back( toAbsolute( path ) ); auto dirPath = toAbsolute( path );
if ( *dirPath.crbegin() != '/' )
dirPath += '/';
m_dirs.emplace_back( dirPath );
} }
else else
{ {
......
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