http://bugzilla.novell.com/show_bug.cgi?id=565152

http://bugzilla.novell.com/show_bug.cgi?id=565152#c0


           Summary: Directory.Exist should not ever throw an exception
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; InfoPath.3; MS-RTC LM 8; MALC)

using System;
using System.IO;

public class C {
    public static void Main() {
        Console.WriteLine(Directory.Exists("C:/C:/"));
    }
}

Reproducible: Always

Steps to Reproduce:
1. compile and run the code above
Actual Results:  
Unhandled Exception: System.IO.IOException: Win32 IO returned
ERROR_INVALID_NAME. Path: C:/C:/
  at System.IO.Directory.Exists (System.String path) [0x00000] in <filename
unknown>:0
  at C.Main () [0x00000] in <filename unknown>:0

Expected Results:  
False

-- 
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