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)
311311 }
312312 else
313313 {
314- if ( path . Contains ( ' \\ ' ) )
314+ if ( ! path . EndsWith ( Path . DirectorySeparatorChar ) )
315315 {
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 ;
325317 }
318+
319+ return Path . GetFullPath ( new Uri ( path ) . LocalPath )
320+ . TrimEnd ( Path . DirectorySeparatorChar , Path . AltDirectorySeparatorChar )
321+ . ToUpperInvariant ( ) ;
326322 }
327323 }
328324
You can’t perform that action at this time.
0 commit comments