Index: src/libchengine/TLocalFilesystem.cpp =================================================================== diff -u -N -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r32e9c223239ddbe4055bf468e92efe33f90f5f94 --- src/libchengine/TLocalFilesystem.cpp (.../TLocalFilesystem.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/TLocalFilesystem.cpp (.../TLocalFilesystem.cpp) (revision 32e9c223239ddbe4055bf468e92efe33f90f5f94) @@ -350,6 +350,16 @@ return pathInput; } + TSmartPath TLocalFilesystem::StripPathExtensionIfNeeded(const TSmartPath& pathInput) + { + const TSmartPath pathPrefix = PathFromString(L"\\\\?\\"); + + if(pathInput.StartsWith(pathPrefix)) + return PathFromString(pathInput.ToWString().Mid(pathPrefix.GetLength()).c_str()); + + return pathInput; + } + TLocalFilesystem::EPathsRelation TLocalFilesystem::GetPathsRelation(const TSmartPath& pathFirst, const TSmartPath& pathSecond) { if (pathFirst.IsEmpty())