[Mono-bugs] [Bug 539791] New: DirectoryInfo.GetFileSystemInfos() Doesnt throw an exception if pointing to a file
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Wed Sep 16 18:49:42 EDT 2009
    
    
  
http://bugzilla.novell.com/show_bug.cgi?id=539791
           Summary: DirectoryInfo.GetFileSystemInfos() Doesnt throw an
                    exception if pointing to a file
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: nestalk at googlemail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.1.2)
Gecko/20090730 SUSE/3.5.2-3.5 Firefox/3.5.2
If you create a DirectoryInfo object pointing to a file a call to the
GetFileSystemInfos method will not return an IOException as it does under .NET.
it will instead return an array of two FileSystemInfo objects containing the
same details.
Reproducible: Always
Steps to Reproduce:
Using the csharp console program enter the following commands:
using System.IO;
var di = DirectoryInfo("/path/to/file");
di.GetFileSystemInfos();
Actual Results:  
The console will print:
{ /path/to/file, /path/to/file }
Expected Results:  
An IOException should be thrown.
-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
    
    
More information about the mono-bugs
mailing list