[Mono-bugs] [Bug 511223] New: File.Exists should allow trailing slashes for file names
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jun 9 07:30:05 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=511223
Summary: File.Exists should allow trailing slashes for file
names
Classification: Mono
Product: Mono: Class Libraries
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: kornelpal at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=296925)
--> (http://bugzilla.novell.com/attachment.cgi?id=296925)
TestPaths.cs
This behavior is odd, and I would consider it being stupid but MS.NET does
this.
Actual Results:
d C:\Windows
d C:\Windows\
d C:\Windows\\
d C:\Windows/
d C:\Windows/\
f C:\Windows\explorer.exe
Unhandled Exception: System.IO.IOException: Win32 IO returned
ERROR_INVALID_NAME
Path: C:\Windows\explorer.exe\
at System.IO.Directory.Exists (System.String path) [0x00000]
at TestPaths.TestPath (System.String path) [0x00000]
at TestPaths.Main () [0x00000]
Expected Results:
d C:\Windows
d C:\Windows\
d C:\Windows\\
d C:\Windows/
d C:\Windows/\
f C:\Windows\explorer.exe
f C:\Windows\explorer.exe\
f C:\Windows\explorer.exe\\
f C:\Windows\explorer.exe/
f C:\Windows\explorer.exe/\
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list