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: Quick question about SRFI-170 directory-files Lassi Kortela (29 Jul 2019 18:06 UTC)

Put directory-fold in the SRFI? hga@xxxxxx 29 Jul 2019 18:45 UTC

> From: Lassi Kortela <xxxxxx@lassi.io>
> Date: Monday, July 29, 2019 12:51 PM

>> - A more general alternative would be a user-supplied filter procedure.
>> But that again gets into the territory of higher-level frameworks IMHO.

>> - Common Lisp used to have a 'with-directory-iterator' function in some
>> third-party library. So instead of returning a list of names, it
>> returned an iterable. For filtering, this could be the best option. A
>> directory _can_ in principle have 10k files or even more.

> In fact, Chibi has a directory-fold procedure:
> <https://github.com/ashinn/chibi-scheme/blob/master/lib/chibi/filesystem.scm#L23>.
> It might be worth having that in the SRFI. For some applications,
> you want to collect the filenames into a hashtable instead of a
> list, so a list is superfluous.

I certainly like directory-fold, it's simple and sweet, and I'm
exposing it in the Chibi Scheme SRFI implementation, along with a
procedure concept I picked up from scsh, delete-filesystem-object,
which does not raise an error if that object doesn't exist.  Unlike
the 0.7 scsh version, it does error if it exists and can't delete it,
it and/or "create-file-thing" in the 0.7 version can cause a stack
consuming infinite loop....

> [...]

- Harold