Commit fb8c87c7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

FsFactory: Fix path canonicalization

(cherry picked from commit 639b36ab)
Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 04037740
......@@ -78,9 +78,8 @@ std::shared_ptr<fs::IDevice> FileSystemFactory::createDeviceFromMrl( const std::
std::string canonicalMrl;
try
{
canonicalMrl = utils::fs::toAbsolute(
utils::url::decode( utils::file::stripScheme( mrl ) ) );
canonicalMrl = scheme() + canonicalMrl;
auto canonicalPath = utils::fs::toAbsolute( utils::file::toLocalPath( mrl ) );
canonicalMrl = utils::file::toMrl( canonicalPath );
}
catch ( const std::system_error& ex )
{
......
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