|
From: | David Nalesnik |
Subject: | Re: Reading a directory |
Date: | Fri, 27 Mar 2015 12:32:27 -0500 |
Am Freitag, 27. März 2015 18:14 CET, Urs Liska <address@hidden> schrieb:
Hi Urs,
> Hi,
>
> I think this should be easy, but I don't find it in the Guile reference.
>
> I want a list of filenames in a given directory, what
> os.listdir(dirname) would give me in Python.
>
> What should I use?
you need the opendir-readdir-closedir combo:
(let ((dir (opendir "/etc/")))
(readdir dir)
.....
(closedir dir))
HTH RalfD
[Prev in Thread] | Current Thread | [Next in Thread] |