File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -311,18 +311,14 @@ public static string NormalizePath(string path)
311
311
}
312
312
else
313
313
{
314
- if ( path . Contains ( ' \\ ' ) )
314
+ if ( ! path . EndsWith ( Path . DirectorySeparatorChar ) )
315
315
{
316
- return Path . GetFullPath ( new Uri ( path ) . LocalPath )
317
- . TrimEnd ( Path . DirectorySeparatorChar , Path . AltDirectorySeparatorChar )
318
- . ToUpperInvariant ( ) ;
319
- }
320
- else
321
- {
322
- return Path . GetFullPath ( path )
323
- . TrimEnd ( Path . DirectorySeparatorChar , Path . AltDirectorySeparatorChar )
324
- . ToUpperInvariant ( ) ;
316
+ path += Path . DirectorySeparatorChar ;
325
317
}
318
+
319
+ return Path . GetFullPath ( new Uri ( path ) . LocalPath )
320
+ . TrimEnd ( Path . DirectorySeparatorChar , Path . AltDirectorySeparatorChar )
321
+ . ToUpperInvariant ( ) ;
326
322
}
327
323
}
328
324
You can’t perform that action at this time.
0 commit comments