[Mono-bugs] [Bug 676934] Directory.GetFiles dies with StackOverflowException when trying to inspect a file

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 4 08:10:12 EST 2011



--- Comment #1 from David Schmitt <david at dasz.at> 2011-03-04 13:10:12 UTC ---
This seems to be caused by Directory.GetDirectories("some file name") to return
"some file name" instead of barfing up:

I used this as testcase:

  public static void Main(string[]args) {
    foreach(var s in Directory.GetDirectories(args[0])) {

calling that with a directory name as argument produces the expected output,
but calling it with a filename, returns the name, instead of dying.

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