[m-users.] Reading the entire directory contents (contribution for the posix library)

Julien Fischer jfischer at opturion.com
Mon Oct 14 13:37:51 AEDT 2019


On Mon, 14 Oct 2019, Volker Wysk wrote:

> Am Montag, den 14.10.2019, 10:32 +1100 schrieb Julien Fischer:

>> I think this is outside the scope of what the POSIX binding was
>> intended
>> to provide (i.e. a "bare" interface to POSIX functionality).
>>
>> In any case, more general functionality for travesing over
>> directories
>> is provided directly by the standard library (e.g. by the predicates
>> dir.foldl2/6 and dir.recursive_foldl2/7.)
>
> I think those are overkill, when you just need the directory contents.
> Maybe dir_contents should be added to the "dir" library?

I'm not convinced that it is generally useful enough to warrant
inclusion it the standard library.

Julien.


More information about the users mailing list