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

fs: win32: Directory: Fix subfolder creation

parent f2654961
...@@ -75,8 +75,8 @@ void Directory::read() const ...@@ -75,8 +75,8 @@ void Directory::read() const
continue; continue;
auto fullpath = m_path + file.get(); auto fullpath = m_path + file.get();
if ( ( f.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) != 0 ) if ( ( f.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) != 0 )
m_dirs.emplace_back( m_fsFactory.createDirectory( m_path + m_dirs.emplace_back( m_fsFactory.createDirectory(
utils::url::encode( fullpath ) ) ); m_mrl + utils::url::encode( file.get() ) ) );
else else
m_files.emplace_back( std::make_shared<File>( fullpath ) ); m_files.emplace_back( std::make_shared<File>( fullpath ) );
} while ( FindNextFile( h, &f ) != 0 ); } while ( FindNextFile( h, &f ) != 0 );
......
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