home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright (c) 1986, 90 by Prolog Development Center
- */
- constants
- fa_subdir = $10
-
- predicates
- existdir(string)
- exd1(string)
- exd2(string,string)
-
- clauses
- existdir(Wild):-
- diropen(Wild,fa_subdir,Block),
- exd1(Block),
- dirclose(Block).
-
- exd1(Block):-
- dirmatch(Block,Name,_,_,_,_,_,_,_,_),
- exd2(Block,Name).
-
- exd2(_,Name):- not(frontchar(Name,'.',_)), !.
- exd2(Block,_):- exd1(Block).