![]() |
YAP 7.1.0
|
The following built-in predicates allow access to underlying Operating System functionality. More...
The following built-in predicates allow access to underlying Operating System functionality.
| class cd/1 |
| class getcwd/1 |
getcwd(- D)
Unify the current directory, represented as an atom, with the argument D
| class directory_files/2 |
directory_files(+ Dir,+ List)
directory_files(+-_Dir_,-_List of Files)
Given a directory Dir, directory_files/2 procedures a listing of all fniles and directories in the directory:
The predicates uses the dirent family of routines in Unix environments, and findfirst in WIN32 through the system_library buil
)
| class unix/1 |
unix(+ S)
Access to Unix-like functionality:
--, as in the usual Unix convention/bin/sh Acceptable commands are strings or atoms| class putenv/2 |
putenv(+ E,+ S)
Set environment variable E to the value S If the environment variable E does not exist, create a new one Both the environment variable and the value must be atoms
| class setenv/2 |
setenv(+ Name,+ Value)
Set environment variable Name and Value should be instantiated to atoms or integers The environment variable will be passed to shell/[0-2] and can be requested using getenv/2 They also influence expand_file_name/2