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

FsFactory: Fix path canonicalization

parent 5b411c7d
......@@ -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