Re: Careful when using chdir inside a dirEntries loop

2011-06-09 Thread Jonathan M Davis
On 2011-06-09 15:20, Andrej Mitrovic wrote: Here's a little buggy code which most often throws an exception: foreach (string entry; dirEntries(curdir, SpanMode.shallow)) { if (entry.isdir) { foreach (string subentry; dirEntries(entry, SpanMode.shallow)) { if (subentry.isdir) {

Re: Careful when using chdir inside a dirEntries loop

2011-06-09 Thread Andrej Mitrovic
Ok filed. I don't know whether it's a bug or not, I do think it's a subtle issue worth investigating though.