| Did you know ... | Search Documentation: |
| Get methods |
->initialise
for details.
->initialiseThe names in the chain are alphabetically ordered.
->scan <-filesname starts with a’/’or’~’,
these methods just return a new file or directory from name.
Otherwise the new object will be created from directory<-path,
and name, separated with a’/’.name denotes an
absolute path it is returned unmodified. See also directory<-file,
directory<-directory
and directory<-parent.pwd on the entry _.._ and
the second is to strip of the last part of the path by scanning for a’/’.
XPCE uses the latter approach.
directory<-parent
fails silently if the directory refers to the root of the file-system.
<-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:/']