[Mono-bugs] [Bug 660911] New: System.IO.DriveInfo(string) should not require an exact match

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 21 18:11:40 EST 2010


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

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


           Summary: System.IO.DriveInfo(string) should not require an
                    exact match
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: madewokherd at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=405899)
 --> (http://bugzilla.novell.com/attachment.cgi?id=405899)
test case

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13)
Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

On MS .NET, there are several valid ways to call the DriveInfo constructor. One
can use a single upper or lower case letter, a letter followed by a colon, or a
full absolute path.

Currently, Mono's DriveInfo constructor requires the given string to exactly
match the path of a drive. This is too strict on Windows.

As it happens, this ability to supply a full path means that one can call
DriveInfo to find out how much disk space is free in any directory, on .NET for
Windows. If this is considered a valid use of DriveInfo and not abuse (and it
may very well be abuse), we should figure out the appropriate mount point on
Unix systems as well.

Reproducible: Always




The attached program will call DriveInfo with the given strings and print the
results.

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