Did you know ... | Search Documentation: |
Pack dpath -- prolog/dpath.pl |
Traverses directory structure and backtracks when necessary.
Example:
?- file(A/B),atom_concat(t,_,B).
True when A is unified to a subdirectory and B is unified to a filename that begins with a letter t.
Example:
?- file(c:/A/'explorer.exe'). A = 'Windows'; false.
Max path errors and other errors are shown as warnings
Example:
?- dpath:filetype(c:/windows/A.exe). A = bfsvc; A = explorer;
Max path errors and other errors are shown as warnings
True if PathTerm is unified to a existing path to a directory
Example:
?- dir(c:/windows/B/C). B = appcompat, C = appraiser ; B = appcompat, C = 'Programs'
Max path errors and other errors are shown as warnings
Example:
==
pathterm_atom(k/l/m/a.b,'k/l/m/a.b')
.
==