Availability:built-in
[semidet]exists_source(+Source)True if Source (a term valid for load_files/2)
exists. Fails without error if this is not the case. The predicate is
intended to be used with conditional compilation (see
section 4.3.1.2
For example:
:- if(exists_source(library(error))).
:- use_module_library(error).
:- endif.
The implementation uses absolute_file_name/3
using
file_type(prolog)
.