Bug 2485 - System.IO.Directory.EnumerateFiles() doesn't work on external directory
Summary: System.IO.Directory.EnumerateFiles() doesn't work on external directory
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 4.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
: 12688 ()
Depends on:
Reported: 2011-12-13 15:34 UTC by Jonathan Pryor
Modified: 2013-12-05 18:34 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Comment 1 Atsushi Eno 2012-10-01 05:49:55 UTC
I could reproduce them until a few hours ago, but after cleaning up emulator images I can't reproduce the issues on neither of Level 7, 10, 15 and 16 emulators (10 and 15 for x86 and arm)... The Android SDK may have fixed the issues for emulator images.

repro code (fragment):

			button.Click += delegate {
				foreach (var e in Directory.EnumerateDirectories ("/sdcard"))
					Console.WriteLine ("ENUMERATE: " + e);
				Console.WriteLine ("---------");
				foreach (var e in Directory.GetDirectories ("/sdcard"))
					Console.WriteLine ("GET: " + e);
				Console.WriteLine ("---------");
				foreach (var e in Directory.GetFileSystemEntries ("/sdcard"))
					Console.WriteLine (e);

We need to either find reproducible condition for this or just close it.
Comment 2 Rebex.NET 2013-06-14 08:32:44 UTC
*** Bug 12688 has been marked as a duplicate of this bug. ***
Comment 3 PJ 2013-11-19 17:04:39 UTC
This bug has been in the NEEDINFO state with no changes for the last 90 days. Can we put this back into the NEW or CONFIRMED state, or are we still awaiting response?

If there is no change in the status of this bug over the next two weeks, this bug will be marked as NORESPONSE.
Comment 4 PJ 2013-12-05 18:34:47 UTC
This bug has not been changed from the NEEDINFO state since my previous comment, marking as RESOLVED NORESPONSE.

Please feel free to REOPEN this bug at any time if you are still experiencing the issue. Please add the requested information and set the bug back to the NEW (or CONFIRMED) state.