[Mono-bugs] [Bug 53892][Nor] New - Missing trailing directory separator char using Path.GetDirectoryName on Windows

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 4 Feb 2004 16:46:24 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen@pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=53892

--- shadow/53892	2004-02-04 16:46:24.000000000 -0500
+++ shadow/53892.tmp.16907	2004-02-04 16:46:24.000000000 -0500
@@ -0,0 +1,29 @@
+Bug#: 53892
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Missing trailing directory separator char using Path.GetDirectoryName on Windows
+
+On Windows, when a file or directory in the root of a drive is passed to
+the Path.GetDirectoryName function, Mono returns only the drive letter and
+volume separator character, but not the trailing directory separator
+character (which is a backslash on Windows).
+
+eg. Path.GetDirectoryName(@"c:\test") should return c:\, but instead
+returns c: on Windows
+
+To match the MS.NET implementation, Path.GetDirectoryName should also
+return the trailing directory separator character on Windows when the
+directory name is the root.