prolog::directory_map/2

directory_map(+ Dir, 1:P)*

Given a directory Dir, directory_map//22 visits all files in Dir, and verifies whether P(F) holds, where F is the file's absolute path.


 ?- directory_map( '.' , process).

The predicates performs a left-recursive traversal. It does not protect against file system errors and it does not check for symbolic links.

Private-func:

1. prolog::directory_map_2::directory_map/2(int ARG1, int ARG2)():