[Mono-bugs] [Bug 676798] New: Directory.GetDirectories with slash returns incorrect list

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 3 14:14:21 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=676798

https://bugzilla.novell.com/show_bug.cgi?id=676798#c0


           Summary: Directory.GetDirectories with slash returns incorrect
                    list
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: Other
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lesnikowski at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development
           Blocker: No


[Test]
public void Method_Condition_Result()
{
    try
    {
        Directory.CreateDirectory(@".\tmp\folder");
        string[] directories = Directory.GetDirectories(@"./tmp/");

        //Expected: "./tmp/folder"
        //But was:  ".\\folder"
        Assert.AreEqual(@"./tmp/folder", directories[0]);
    }
    finally
    {
        Directory.Delete(@".\tmp\", true);
    }
}



Actual Results:
".\\folder"

Expected Results:
"./tmp/folder"

How often does this happen? 
Every time.

-- 
Configure bugmail: https://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