[Issue 12391] DirEntries throws in foreach
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Oct 31 03:39:41 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=12391
Andre Artus <andre.artus at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andre.artus at gmail.com
--- Comment #7 from Andre Artus <andre.artus at gmail.com> ---
I would really like to see either a complementary function, or a parameter, or
any other solution to this problem. At the moment I have to maintain a parallel
implementation of dirEntries. While I'm sure it exists for someone, I don't
have a use case favouring the current behaviour. 
Most of my utilities where using dirEntries would be useful scan the full
filesystem. I cannot even exclude these directories by name as the crash
happens before I get the result.
auto dFiles = dirEntries(path,"*.{d,di}",SpanMode.depth);
foreach (d; dFiles) {
// nothing happening here
}
std.file.FileException at std\file.d(4573): [Folder]: Access is denied.
--
    
    
More information about the Digitalmars-d-bugs
mailing list