file-readable? and friends should raise &i/o-file-does-not-exist

Bug #405944 reported by Andreas Rottmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ikarus Scheme
New
Undecided
Unassigned

Bug Description

The current behavior:

Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1829, build 2009-07-28)
Copyright (c) 2006-2009 Abdulaziz Ghuloum

> (file-readable? "/not/there")
Exception trapped by debugger.
 Condition components:
   1. &error
   2. &who: file-readable?
   3. &message: "ENOENT: No such file or directory"
   4. &i/o-filename: "/not/there"

I think it would be better to raise `&i/o-file-does-not-exist-error',
instead of its supertype `&i/o-filename', as it would convey more
(machine-understandable) information to the caller.

Revision history for this message
Andreas Rottmann (rotty) wrote :

The attached patch should fix this for all procedures from ikarus.posix.ss.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.