| Did you know ... | Search Documentation: |
| Predicate directory_member/3 |
[nondet]directory_member(+Directory,
-Member, +Options)true (default false), recurse into
subdirectoriestrue (default), follow symbolic links.fail, warning or error.
Default is warning. Errors notably happen if a
directory is unreadable or a link points nowhere.true (default), also return hidden files.This predicate is safe against cycles introduced by symbolic links to directories.
The idea for a non-deterministic file search predicate comes from Nicos Angelopoulos.