ftw: Clarify the behavior of `scandir' for flat files and unreadable dirs.
authorLudovic Courtès <ludo@gnu.org>
Mon, 19 Dec 2011 08:11:43 +0000 (09:11 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 19 Dec 2011 08:11:51 +0000 (09:11 +0100)
commitde92987002224276dafc0875873b30149e964828
tree72076128582d422bdd85b2fc0c160497dc92faaa
parent3cc21d7995313782f6def1789ca0150e95c8363f
ftw: Clarify the behavior of `scandir' for flat files and unreadable dirs.

* module/ice-9/ftw.scm (scandir)[leaf]: Only add NAME when RESULT is a
  pair.
  [down]: Ignore RESULT.
  Start with #f instead of the empty list.

* test-suite/tests/ftw.test ("scandir")["flat file"]: New test.

* doc/ref/misc-modules.texi (File Tree Walk): Update `scandir'
  documentation accordingly.
doc/ref/misc-modules.texi
module/ice-9/ftw.scm
test-suite/tests/ftw.test