1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00
guile/module
Ludovic Courtès be96155b50 ftw: Add an error' parameter to file-system-fold'.
* module/ice-9/ftw.scm (errno-if-exception): New macro.
  (file-system-fold): Add an `error' parameter.  Wrap `opendir' and STAT
  calls in `errno-if-exception' and call ERROR when appropriate.
  (file-system-tree): Provide an `error' procedure.  Return #f when
  FILE-NAME is unreadable.
  (scandir): Provide an `error' procedure.

* test-suite/tests/ftw.test (%top-builddir): New variable.
  (make-file-tree, delete-file-tree): New procedures.
  (with-file-tree): New macro.
  ("file-system-fold"): Update tests to add an `error' procedure.
  ["ENOENT", "EACCES", "dangling symlink and lstat", "dangling symlink
  and stat"]: New tests.
  ("file-system-tree")["ENOENT"]: New test.
  ("scandir")["EACCES"]: New test.

* doc/ref/misc-modules.texi (File Tree Walk): Update `file-system-fold'
  documentation.
2012-01-08 16:16:21 +01:00
..
ice-9 ftw: Add an error' parameter to file-system-fold'. 2012-01-08 16:16:21 +01:00
language Placate a number of `syntax-check' verifications. 2012-01-05 23:38:10 +01:00
oop fix some cache consistency issues with goops and extended generics 2011-09-02 13:17:19 +02:00
rnrs Fix R6RS `fold-left' so the accumulator is the first argument. 2011-11-01 01:11:46 +01:00
scripts Add a --target' option to guild compile'. 2011-11-22 00:22:46 +01:00
srfi Placate a number of `syntax-check' verifications. 2012-01-05 23:38:10 +01:00
sxml more define-syntax-rule usage 2011-09-02 11:36:14 +02:00
system Placate a number of `syntax-check' verifications. 2012-01-05 23:38:10 +01:00
texinfo Use default value for make-fluid in Scheme files 2011-11-23 12:54:09 +01:00
web `write-request-line' writes absolute paths, not absolute URIs. 2012-01-07 01:36:34 +01:00
Makefile.am Allow $GUILE_FOR_BUILD to use its own environment when cross-compiling. 2011-11-23 15:29:18 +01:00
rnrs.scm Enhance transcoder-related functionality of `(rnrs io ports)' 2011-03-13 23:14:43 +01:00
statprof.scm add gcprof 2011-05-05 11:43:12 +02:00
texinfo.scm more define-syntax-rule usage 2011-09-02 11:36:14 +02:00