http://bugzilla.novell.com/show_bug.cgi?id=527732
Summary: System.IO.File.Exists(filename) should return false if
filename is a directory
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: Community User
Description of Problem:
For compatibility with .NET, System.IO.File.Exists(filename) should return true
iff filename is a file (not a directory).
Steps to reproduce the problem:
1. Create a directory <dirname>
2. Run the c# statement: "bool b1 = System.IO.File.Exists("<dirname>");
3. Run the c# statement: "bool b2 = System.IO.Directory.Exists("<dirname>");
Actual Results:
b1 is true, b2 is true.
Expected Results:
b1 is false, b2 is true.
How often does this happen?
Always
Additional Information:
http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx
--
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