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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to