dirEntries removes entire branches of empty directories

Vladimir Panteleev thecybershadow.lists at gmail.com
Wed Nov 30 00:53:25 UTC 2022


On Thursday, 10 November 2022 at 21:27:28 UTC, Ali Çehreli wrote:
> However, ftw performs about twice as fast as dirEntries

Yes, `dirEntries` isn't as fast as it could be.

Here is a directory iterator which tries to strictly not do more 
work than what it must:

https://github.com/CyberShadow/ae/blob/86b016fd258ebc26f0da3239a6332c4ebecd3215/sys/file.d#L178



More information about the Digitalmars-d-learn mailing list