| Did you know ... | Search Documentation: |
| directory<-roots |
<-roots
gathers the roots of the filesystem. On Unix, there is only one root, so
a chain holding only’/’is returned. On windows, it returns
the path-names of all defined logical drives. This call is used by library(find_file)
to show all defined drives after an up from a drive-root.
The content of the directory object itself is not examined. For example (Windows):
?- get(directory('.'), roots, Roots),
chain_list(Roots, List).
List = ['a:/', 'c:/', 'd:/', 'e:/', 's:/']