Can I skip sub directories with file.dirEntries() ?

Ky-Anh Huynh saigon at example.net
Wed Sep 27 09:00:55 UTC 2017


Hi,

Can I have a `break` option when using `dirEntries()`  (similar 
to `break` in a loop)? I want to study sub-directories but if any 
sub-directory matches my criteria I don't to look further into 
their subdirectories

```
   <working-dir>
      A/   -> matches criteria, stop here, go to next directory (B)
      B/   -> doesn't match criteria, will look at its 
sub-directories (BX, BY,...)
        BX
        BY
```

Thanks a lot


More information about the Digitalmars-d-learn mailing list