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

Volker Wysk post at volker-wysk.de
Mon Oct 14 13:42:50 AEDT 2019


Am Montag, den 14.10.2019, 13:37 +1100 schrieb Julien Fischer:
> 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.

I think, most of the time you just want the directory contents. But
you're the boss.  :-)

Cheers
Volker



More information about the users mailing list