Quick question about SRFI-170 directory-files hga@xxxxxx (29 Jul 2019 15:46 UTC)
(missing)
(missing)
Re: Quick question about SRFI-170 directory-files hga@xxxxxx (29 Jul 2019 17:08 UTC)
Re: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 17:42 UTC)
Re: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 17:51 UTC)
Re: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 18:03 UTC)
Re: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 18:15 UTC)
Put directory-fold in the SRFI? hga@xxxxxx (29 Jul 2019 18:45 UTC)
Re: Put directory-fold in the SRFI? John Cowan (29 Jul 2019 19:38 UTC)
Re: Quick question about SRFI-170 directory-files John Cowan (29 Jul 2019 20:27 UTC)
Re: Quick question about SRFI-170 directory-files Marc Feeley (29 Jul 2019 18:28 UTC)
Re: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 18:31 UTC)
Re: Quick question about SRFI-170 directory-files Marc Feeley (29 Jul 2019 18:46 UTC)
Re: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 18:57 UTC)
Re: Quick question about SRFI-170 directory-files Marc Feeley (29 Jul 2019 19:04 UTC)
Re: Quick question about SRFI-170 directory-files hga@xxxxxx (29 Jul 2019 18:32 UTC)
Re: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 18:51 UTC)
Re: Quick question about SRFI-170 directory-files hga@xxxxxx (29 Jul 2019 19:16 UTC)
Re: Quick question about SRFI-170 directory-files John Cowan (30 Jul 2019 18:52 UTC)
Re: Quick question about SRFI-170 directory-files hga@xxxxxx (30 Jul 2019 19:58 UTC)
Re: Quick question about SRFI-170 directory-files John Cowan (30 Jul 2019 20:44 UTC)
(missing)
make-directory-files-generator hga@xxxxxx (06 Sep 2019 16:21 UTC)
Re: make-directory-files-generator hga@xxxxxx (06 Sep 2019 17:26 UTC)
(missing)
Re: make-directory-files-generator hga@xxxxxx (06 Sep 2019 21:56 UTC)
Re: Outstanding issue: directory-files in the context of huge directories hga@xxxxxx (04 Sep 2019 12:14 UTC)
Re: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 18:06 UTC)

Re: Outstanding issue: directory-files in the context of huge directories hga@xxxxxx 04 Sep 2019 12:13 UTC

> From: Lassi Kortela <xxxxxx@lassi.io>
> Date: Wednesday, September 04, 2019 6:46 AM
>
>> One unanswered question from a few weeks ago was if we should
>> provide a facility on top of open/read/close-directory that deals
>> with very large directories more gracefully than directory-files,
>> which just returns a list.  If so, lots of good examples were
>> referred to, and this snippet might be the best point we got to
>> while discussing it:
>
> In the current draft, there's a "read-directory" procedure which
> does this really nicely.

It's a wrapper of POSIX readdir, which with the one for opendir per
your observations of their use in the field never returns "." and
"..", and has an optional argument if you want any other dot files.

> It easily supports generator-style and fold-style helper procedures,
> as well as directory ports (i.e. open-directory returns a special
> kind of port as in Gambit).

We decided that ports are too low level and implementation dependent
for this SRFI, but I for example use a slightly modified for
dot-files? version of Chibi's directory-fold to supply
directory-files.  However we decided including a directory-fold was
beyond the remit of this SRFI, which in a later email you made today
you agree with:

> To answer your inquiry about including folds and such in the base
> SRFI, I vote to leave them for higher-level libraries such as glob
> (I think I changed my mind on this at some point). But if others
> really want to include a directory fold in the base SRFI, I'm still
> not against it.

But we're working on a generator to add to the SRFI.

- Harold