mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-02 07:30:55 -08:00
Hannu Koivisto: Now respects if-does-not-exist argument in all case
This commit is contained in:
parent
e76f6f9831
commit
33263c74c5
1 changed files with 5 additions and 3 deletions
|
|
@ -146,9 +146,11 @@ GO_ON:
|
|||
/* If filename already has an extension, make sure
|
||||
that the file exists */
|
||||
filename = coerce_to_filename(pathname);
|
||||
if (!file_exists(filename))
|
||||
FEcannot_open(filename);
|
||||
function = cdr(assoc(pathname->pathname.type, hooks));
|
||||
if (!file_exists(filename)) {
|
||||
filename = Cnil;
|
||||
} else {
|
||||
function = cdr(assoc(pathname->pathname.type, hooks));
|
||||
}
|
||||
} else loop_for_in(hooks) {
|
||||
/* Otherwise try with known extensions until a matching
|
||||
file is found */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue